USING: accessors assocs combinators html.parser
-html.parser.utils io kernel math math.order namespaces sequences
-strings unicode.categories ;
+html.parser.utils io io.streams.string kernel math math.order
+namespaces sequences strings unicode.categories ;
IN: html.parser.printer
TUPLE: html-printer ;
: html-text. ( vector -- )
T{ text-printer } html-printer [ print-tags ] with-variable ;
+: html-text ( vector -- string )
+ [ html-text. ] with-string-writer ;
+
: html-src. ( vector -- )
T{ src-printer } html-printer [ print-tags ] with-variable ;
+: html-src ( vector -- string )
+ [ html-src. ] with-string-writer ;
+
M: text-printer print-opening-tag
name>> {
{ "br" [ nl ] }