* Escape entities in RCDATA that can be escaped without changing the meaning. * @param {string} rcdata The RCDATA string we want to normalize. * @return {string} A normalized version of RCDATA. * @private
(rcdata)
| 706 | * @private |
| 707 | */ |
| 708 | normalizeRCData_(rcdata) { |
| 709 | return rcdata.replace(LOOSE_AMP_RE_, '&$1') |
| 710 | .replace(LT_RE, '<') |
| 711 | .replace(GT_RE, '>'); |
| 712 | } |
| 713 | }; |
| 714 | exports.HtmlParser = HtmlParser; |
| 715 |