0

I have embeded froala editor in my jsp and want to save all the content typed in the editor with all the formatting and images as PDF file . I currently have embeded the editor and pass the content using the form submit button. On submitting the parameters to servlet that uses a itext libraries , i created the pdf but the formatted text is not displayed as formatted in the pdf file. Instead the formatted text printed in pdf with html tags like

around them. Please help

Kamlesh Sharma
  • 222
  • 1
  • 7
  • 23

1 Answers1

0

I believe that you should mark the HTML as safe to display. This has been answered in another question https://stackoverflow.com/a/7442668/1806855

Community
  • 1
  • 1
st3fan
  • 1,630
  • 14
  • 32
  • Buddy, i didnt get 'mark the html as safe to display' ? – Kamlesh Sharma Mar 10 '15 at 13:43
  • By default the html tags are displayed as text instead of html. You should tell JSP to display it as safe html. I am not familiar to JSP to tell you exactly what you should do, but this is the main idea. – st3fan Mar 10 '15 at 15:56