Changes

Jump to navigation Jump to search
250 bytes added ,  00:49, 3 January 2013
|
* {{Code|html:parse("<html></html>")}} returns {{Code|<html/>}}
* <code><nowiki>html:parse("<a href='ok.html'/>", map { 'nons' := true() })</nowiki></code> creates an XML document without namespaces. It returns:
<pre class="brush:xml">
<html>
<body>
<a shape="rect" href="ok.html"/>
</body>
</html>
</pre>
* <code><nowiki>html:parse(fetch:content-binary("http://en.wikipedia.org"))</nowiki></code> returns an XML representation of the English Wikipedia main page. The input is passed on its binary representation such that the HTML parser can automatically detect the correct encoding.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu