Added support for generating html chars

Added test for generate_html function