MCPcopy Create free account
hub / github.com/ampproject/amphtml / stripNULs_

Method stripNULs_

validator/js/engine/htmlparser.js:685–687  ·  view source on GitHub ↗

* Removes null characters on the string. * @param {string} s The string to have the null characters removed. * @return {string} A string without null characters. * @private

(s)

Source from the content-addressed store, hash-verified

683 * @private
684 */
685 stripNULs_(s) {
686 return s.replace(NULL_RE_, '');
687 }
688
689 /**
690 * The plain text of a chunk of HTML CDATA which possibly containing.

Callers 1

parseMethod · 0.80

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected