Tools

HTML to Scalatags converter

Converts any, even invalid, HTML to Scala code for Li Haoyi's Scalatags library.

Press Ctrl-Enter to submit

Unlike formatted HTML, Scalatags does not keep whitespace symbols in output. Sometimes it breaks page layout, particularly because spaces in inline flow matter. "Preserve whitespace" option adds whitespace string to Scala code where it appears in source HTML.

Any issues can be reported on converter's github page.