Changes

Jump to navigation Jump to search
102 bytes added ,  16:29, 27 February 2020
no edit summary
;Query:
<pre classsyntaxhighlight lang="brush:xquery">
html:parse("<html>")
</presyntaxhighlight>
;Result:
<pre classsyntaxhighlight lang="brush:xml">
<html xmlns="http://www.w3.org/1999/xhtml"/>
</presyntaxhighlight>
===Specifying Options===
;Query:
<pre classsyntaxhighlight lang="brush:xquery">
html:parse("<a href='ok.html'/>", map { 'nons': false() })
</presyntaxhighlight>
;Result:
<pre classsyntaxhighlight lang="brush:xml">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
</body>
</html>
</presyntaxhighlight>
===Parsing Binary Input===
;Query:
<pre classsyntaxhighlight lang="brush:xquery">
html:parse(fetch:binary("https://en.wikipedia.org"))
</presyntaxhighlight>
;Result:
<pre classsyntaxhighlight lang="brush:xml">
<html xmlns="http://www.w3.org/1999/xhtml" class="client-nojs" dir="ltr" lang="en">
<head>
<meta charset="UTF-8"/>
...
</presyntaxhighlight>
=Errors=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu