Added support for generating html chars

Please use `format` for string interpolation, not `%`.