A central module `libstd/Html.rs` could be useful. Golang has one: http://golang.org/pkg/html/ - HTML-escaping should probably implemented ontop of libcore/iter::map or something similar. - Escape at least `"`, `<`, `>`, `\`, `&`