Lines Matching refs:html
40 HTMLParser = this.HTMLParser = function( html, handler ) {
41 var index, chars, match, stack = [], last = html;
42 html = html.replace(/~~OPEN_HTML_BLOCK~~/gm , '~~START_HTML_BLOCK~~') ;
43 html = html.replace(/~~END_HTML_BLOCK~~/gm , '~~CLOSE_HTML_BLOCK~~') ;
44 …if(html.match(/~~START_HTML_BLOCK~~/gm) ){ //adopted [\s\S] from Goyvaerts, Reg. Exp. C…
46 html = html.replace(/~~START_HTML_BLOCK~~|~~CLOSE_HTML_BLOCK~~/gm,"");
49 …html = html.replace(/(<p.*?>)*\s*~~START_HTML_BLOCK~~\s*(<\/p>)*([\s\S]+)~~CLOSE_HTML_BLOCK~~\s*(<…
59 …html = html.replace(/(<sup\s+class=\"dwfcknote fckgL\d+\"\>fckgL\d+\s*\<\/sup\>)\<\/a\>/gm, functi…
68 while ( html ) {
75 if ( html.indexOf("<!--") == 0 ) {
76 index = html.indexOf("-->");
80 handler.comment( html.substring( 4, index ) );
81 html = html.substring( index + 3 );
86 } else if ( html.indexOf("</") == 0 ) {
87 match = html.match( endTag );
90 html = html.substring( match[0].length );
96 } else if ( html.indexOf("<") == 0 ) {
97 match = html.match( startTag );
100 html = html.substring( match[0].length );
107 index = html.indexOf("<");
109 var text = index < 0 ? html : html.substring( 0, index );
110 html = index < 0 ? "" : html.substring( index );
117 html = html.replace(new RegExp("(.*)<\/" + stack.last() + "[^>]*>"), function(all, text){
130 if ( html == last )
131 throw "Parse Error: " + html;
132 last = html;