Hi all. I'm using e4x to generate a HTML-snippet for my users which they can copy & paste into their blogs or web sites:
var xml: XML = <object>
<param name="..."></param>
<param name="..."></param>
<embed args="..."></embed>
</object>;
var html: String = xml.toXMLString();
however, the tags without child elements are closed using the shorter <embed/>
-variant rather than <embed></embed>
in the output HTML-string , which causes some problems when the code is pasted into e.g. the Blogger editor.
Is there a way to force the HTML-way of closing tags or is there a good workaround? Putting comments between <embed>
and </embed>
doesn't seem to work..