How can render HTML content from database in a prawn document
class PdfReport < Prawn::Document
def initialize user
super()
text user.description #=> "<p>It's an html content</p>"
end
end
The output i am getting from the above code is a string with HTML tags. I want something like html_safe
. Is it possible in Prawn
?