Prawn/prawnto is cool stuff to generate pdf file. But I am not able to render formatted text exactly as they are. Prawn is rendering all the html tags <b>, <i>, <p> as string. Below is the code i have written
pdf.text "#{@product.name}", :size => 20, :style => :bold
pdf.text "<b>Ashis Rai<b>"
and want to see the result as
Nokia N97 Ashis Rai
but I am getting final result as below
Nokia N97
<b>Ashis Rai<b>