Searched refs:html (Results 1 – 1 of 1) sorted by relevance
280 function htmlToText(html) { argument281 var pos = html.indexOf('&');282 if (pos < 0) { return html; }286 for (--pos; (pos = html.indexOf('&#', pos + 1)) >= 0;) {287 var end = html.indexOf(';', pos);289 var num = html.substring(pos + 3, end);297 html = (html.substring(0, pos) + String.fromCharCode(codePoint) +298 html.substring(end + 1));303 return html.replace(pr_ltEnt, '<')