/ / text become red / / the content: / / keyword ele: contents of regional Common. Prototype. TextToRed = function (content, ele) {var bodyHtml = (ele). The HTML (); BodyHtml = bodyhtml.replace (/<\/? The font / > ∗ > / gi, “”); Varreger = newRegExp (” (> ∣) ([the] ∗) (” + content + “) (/ > ∗ <) “, “gm”); Varreslut = bodyhtml.replace (reger,”(ele).html(); BodyHtml = bodyhtml.replace (/<\/? font[^>]*>/gi,””); var reger = new RegExp(“(>|^)([^<]*)(” + content + “)([^>]*<)”,”gm”); Var reslut = bodyhtml.replace (reger, “(ele).html(); BodyHtml = bodyhtml.replace (/<\/? The font / > ∗ > / gi, “”); Varreger = newRegExp (” (> ∣) ([the] ∗) (” + content + “) (/ > ∗ <) “, “gm”); Varreslut = bodyhtml. replace(reger,”1 2

2

2

3 4″); 4 “); 4 “); (ele).html(reslut); }
=>
=>
=>