(stripHtml, normalize)
| 11239 | |
| 11240 | // Common function to remove new lines, strip HTML and diacritic control |
| 11241 | var _filterString = function (stripHtml, normalize) { |
| 11242 | return function (str) { |
| 11243 | if (_empty(str) || typeof str !== "string") { |
| 11244 | return str |
| 11245 | } |
| 11246 | |
| 11247 | str = str.replace(_re_new_lines, " ") |
| 11248 | |
| 11249 | if (stripHtml) { |
| 11250 | str = _stripHtml(str) |
| 11251 | } |
| 11252 | |
| 11253 | if (normalize) { |
| 11254 | str = _normalize(str, false) |
| 11255 | } |
| 11256 | |
| 11257 | return str |
| 11258 | } |
| 11259 | } |
| 11260 | |
| 11261 | /* |
| 11262 | * Public helper functions. These aren't used internally by DataTables, or |
no test coverage detected