Lines Matching refs:html

41 	HTMLParser = this.HTMLParser = function( html, handler ) {
42 var index, chars, match, stack = [], last = html;
44 html = html.replace(/(<img.*?src="data:image\/\w+;base64,\s*)(.*?)(\/>)/gm,
57 html = html.replace(/~~OPEN_HTML_BLOCK~~/gm , '~~START_HTML_BLOCK~~') ;
58 html = html.replace(/~~END_HTML_BLOCK~~/gm , '~~CLOSE_HTML_BLOCK~~') ;
60 …if(html.match(/~~START_HTML_BLOCK~~/gm) ){ //adopted [\s\S] from Goyvaerts, Reg. Exp. C…
62 html = html.replace(/~~START_HTML_BLOCK~~|~~CLOSE_HTML_BLOCK~~/gm,"");
65html = html.replace(/(<p>)*\s*~~START_HTML_BLOCK~~\s*(<\/p>)*([\s\S]+)~~CLOSE_HTML_BLOCK~~\s*(<\/p…
75html = html.replace(/(<sup\s+class=\"dwfcknote fckgL\d+\"\>fckgL\d+\s*\<\/sup\>)\<\/a\>/gm, functi…
80 var pos = html.indexOf('data-');
82 html = html.replace(/(<\w+)([^>]+)>/gm,function(match,tag,atts){
92 while ( html ) {
99 if ( html.indexOf("<!--") == 0 ) {
100 index = html.indexOf("-->");
104 handler.comment( html.substring( 4, index ) );
105 html = html.substring( index + 3 );
110 } else if ( html.indexOf("</") == 0 ) {
111 match = html.match( endTag );
114 html = html.substring( match[0].length );
120 } else if ( html.indexOf("<") == 0 ) {
121 match = html.match( startTag );
124 html = html.substring( match[0].length );
131 index = html.indexOf("<");
133 var text = index < 0 ? html : html.substring( 0, index );
134 html = index < 0 ? "" : html.substring( index );
141 html = html.replace(new RegExp("(.*)<\/" + stack.last() + "[^>]*>"), function(all, text){
154 if ( html == last )
155 throw "Parse Error: " + html;
156 last = html;