MCPcopy Index your code
hub / github.com/ampproject/amphtml / unescapeEntities_

Method unescapeEntities_

validator/js/engine/htmlparser.js:698–700  ·  view source on GitHub ↗

* The plain text of a chunk of HTML CDATA which possibly containing. * * TODO(goto): use `goog.string.unescapeEntities` instead ? * @param {string} s A chunk of HTML CDATA. It must not start or end inside * an HTML entity. * @return {string} The unescaped entities. * @private

(s)

Source from the content-addressed store, hash-verified

696 * @private
697 */
698 unescapeEntities_(s) {
699 return s.replace(ENTITY_RE_, goog.bind(this.lookupEntity_, this));
700 }
701
702 /**
703 * Escape entities in RCDATA that can be escaped without changing the meaning.

Callers 1

parseMethod · 0.80

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected