title: Struts 2 - Converting new lines (\r\n) in <br /> elements using <s:property>
body: <p>Is there a way to convert new lines in a <code>&lt;br /&gt;</code> HTML element using the <code>&lt;s:property&gt;</code> tag?</p>
  
  <p>For example I have the following string value in a <code>sampleValue</code> property:</p>
  
  <pre><code>Hello world\r\nThis is a new line
  </code></pre>
  
  <p>to be rendered with <code>&lt;s:property value="%{sampleValue}" /&gt;</code> like:</p>
  
  <pre><code>Hello world&lt;br /&gt;This is a new line
  </code></pre>
  
  <p>Thanks</p>