remove some prints

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
Escape html and reduce number of writes!

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
Change multiline to dotall. and add doctests with newlines

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>