diff --git a/extra/farkup/farkup-tests.factor b/extra/farkup/farkup-tests.factor index 7176486f8e..4d235a054c 100755 --- a/extra/farkup/farkup-tests.factor +++ b/extra/farkup/farkup-tests.factor @@ -54,7 +54,7 @@ IN: farkup.tests [ "
=
=
" ] [ "=foo==" convert-farkup ] unit-test -[ "int main()\n" ] [ "[c{int main()}]" convert-farkup ] unit-test [ "
+ htmlize-lines +] with-string-writer ; : check-url ( href -- href' ) diff --git a/extra/xmode/code2html/code2html.factor b/extra/xmode/code2html/code2html.factor index 3977f4277c..a9384ad861 100755 --- a/extra/xmode/code2html/code2html.factor +++ b/extra/xmode/code2html/code2html.factor @@ -1,12 +1,12 @@ USING: xmode.tokens xmode.marker xmode.catalog kernel html html.elements io io.files sequences words io.encodings.utf8 -namespaces ; +namespaces xml.entities ; IN: xmode.code2html : htmlize-tokens ( tokens -- ) [ dup token-str swap token-id [ - write + escape-string write ] [ write ] if* @@ -21,7 +21,7 @@ IN: xmode.code2html : default-stylesheet ( -- ) ; : htmlize-stream ( path stream -- ) @@ -29,7 +29,7 @@ IN: xmode.code2html default-stylesheet -