added method to convert string to HTML