USING: html.parser html.parser.printer io.streams.string namespaces strings tools.test ; { " " } [ 5 #indentations [ [ indent ] with-string-writer ] with-variable ] unit-test { " href='http://www.google.com' rel='nofollow'" } [ H{ { "href" "http://www.google.com" } { "rel" "nofollow" } } [ print-attributes ] with-string-writer ] unit-test { "

\n Sup dude!\n
\n

\n" } [ "

Sup dude!

" parse-html [ prettyprint-html ] with-string-writer ] unit-test ! Wrongly nested tags { "
\n

\n Sup dude!\n
\n

\n

\n" } [ "

Sup dude!

" parse-html [ prettyprint-html ] with-string-writer ] unit-test