updated genarate_string method to support html strings and a simple test