MCPcopy Create free account
hub / github.com/breck7/scroll / _filterString

Function _filterString

external/.datatables.js:11241–11259  ·  view source on GitHub ↗
(stripHtml, normalize)

Source from the content-addressed store, hash-verified

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

Callers 1

.datatables.jsFile · 0.85

Calls 4

_emptyFunction · 0.85
_stripHtmlFunction · 0.85
_normalizeFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected