title: using JSF PrimeFaces' text editor, how to add text in PDF using iText
body: <p>We are using JSF PrimeFaces' text editor. When we receive String from text editor in backing bean, it also includes HTML tags. Following image might help in understanding this problem.</p>
  
  <p>Following is what we wrote:</p>
  
  <p><img src="https://i.stack.imgur.com/VEZWt.jpg" alt="enter image description here"></p>
  
  <p>Following is what we received:</p>
  
  <p><img src="https://i.stack.imgur.com/qbles.jpg" alt="enter image description here"></p>
  
  <p>Next thing we want to do is, to write what was written in text editor, as it is, into PDF using iText. But we do not know how to convert this string (with HTML tags) into only data.</p>
  
  <p>Following was the code:</p>
  
  <p><img src="https://i.stack.imgur.com/ymBFc.jpg" alt="enter image description here"></p>