KISSY.Editor.add("htmlparser-basicwriter",function(){function d(){this._={output:[]}}var b=KISSY,e=b.Editor,f=e.Utils;b.augment(d,{openTag:function(a){this._.output.push("<",a)},openTagClose:function(a,c){c?this._.output.push(" />"):this._.output.push(">")},attribute:function(a,c){if(typeof c=="string")c=f.htmlEncodeAttr(c);this._.output.push(" ",a,'="',c,'"')},closeTag:function(a){this._.output.push("</",a,">")},text:function(a){this._.output.push(a)},comment:function(a){this._.output.push("<!--",
a,"--\>")},write:function(a){this._.output.push(a)},reset:function(){this._.output=[];this._.indent=false},getHtml:function(a){var c=this._.output.join("");a&&this.reset();return c}});e.HtmlParser.BasicWriter=d;e.HtmlParser.BasicWriter=d;b=d.prototype;e.Utils.extern(b,{openTag:b.openTag,openTagClose:b.openTagClose,attribute:b.attribute,closeTag:b.closeTag,text:b.text,comment:b.comment,write:b.write,reset:b.reset,getHtml:b.getHtml})});
