Lines Matching refs:replace
44 html = html.replace(/(<img.*?src="data:image\/\w+;base64,\s*)(.*?)(\/>)/gm,
49 match = match.replace(/msword/,"");
57 html = html.replace(/~~OPEN_HTML_BLOCK~~/gm , '~~START_HTML_BLOCK~~') ;
58 html = html.replace(/~~END_HTML_BLOCK~~/gm , '~~CLOSE_HTML_BLOCK~~') ;
62 html = html.replace(/~~START_HTML_BLOCK~~|~~CLOSE_HTML_BLOCK~~/gm,"");
65 …html = html.replace(/(<p>)*\s*~~START_HTML_BLOCK~~\s*(<\/p>)*([\s\S]+)~~CLOSE_HTML_BLOCK~~\s*(<\/p…
66 text = text.replace(/<\/?div.*?>/gm,"");
67 text = text.replace(/<code>/gm,"");
68 text = text.replace(/<\/code>/gm,"");
69 text = text.replace(/</gm,"<");
70 text = text.replace(/<\//gm,">");
75 …html = html.replace(/(<sup\s+class=\"dwfcknote fckgL\d+\"\>fckgL\d+\s*\<\/sup\>)\<\/a\>/gm, functi…
82 html = html.replace(/(<\w+)([^>]+)>/gm,function(match,tag,atts){
83 atts = atts.replace(/data-[\w\-]+\s*=\s*(\"|\')\w+(\"|\')/,"");
115 match[0].replace( endTag, parseEndTag );
125 match[0].replace( startTag, parseStartTag );
141 html = html.replace(new RegExp("(.*)<\/" + stack.last() + "[^>]*>"), function(all, text){
142 text = text.replace(/<!--(.*?)-->/g, "$1")
143 .replace(/<!\[CDATA\[(.*?)]]>/g, "$1");
181 rest.replace(attr, function(match, name) {
190 escaped: value.replace(/(^|[^\\])"/g, '$1\\\"') //"