title: asp.net mvc - convert &lt;br&gt; to <br/> in c#
body: <p>My application is ASP.NET MVC2 C#, I am using Telerik MVC Editor and itextsharp to produce a PDF file.  My challenge is <code>&lt;br /&gt;</code> shows in the PDF rather than a new paragraph.</p>
  
  <p>In the editor I have:</p>
  
  <pre><code>.Encode(false)
  </code></pre>
  
  <p>In the controller I am using:</p>
  
  <pre><code>er.Comments = HttpUtility.HtmlDecode(recommendation.Comments);
  </code></pre>
  
  <p>so far everything works well.</p>
  
  <p>To produce my PDF, I am using:</p>
  
  <pre><code>BPR = HttpUtility.HtmlEncode(this.Recommendations.**Comments**)
  List&lt;IElement&gt; htmlarraylist = iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(new StringReader(BPR ), null);
  </code></pre>
  
  <p>Comments is stored as in the database as:</p>
  
  <pre class="lang-none prettyprint-override"><code>First Paragraph &lt;br /&gt; Second paragraph
  </code></pre>
  
  <p>However when I debug the program, BPR is converted to:</p>
  
  <pre class="lang-none prettyprint-override"><code>First Paragraph &amp;lt;br /&amp;gt; Second paragraph
  </code></pre>
  
  <p>Is there a way to convert <code>&amp;lt;br /&amp;gt;</code> back to <code>&lt;br/&gt;</code>?</p>