title: &nbsp in worwrap not working
body: <p>I am trying to fix lengthy string's alignment issue, here is my code</p>
  
  <pre><code>  &lt;html&gt;
      &lt;head&gt;&lt;/head&gt;
      &lt;body&gt;
      &lt;?php $lengthyString = "This is the lengthy string ,but i miss the spacing after second line. The length and contents may vary"; ?&gt;
      &lt;p style="width:25%"&gt;&amp;nbsp;Line1&lt;br&gt;
      &amp;nbsp;Line2&lt;br&gt;
      &amp;nbsp;&lt;?php echo nl2br($lengthyString); ?&gt;z&lt;br&gt;
      &lt;/p&gt;
  
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>But i missed spacing(&amp;nbsp) adjustment in <code>$lengthyString</code>.Iwant to dispay the lenghty string's new lines should be uniformal with one space intend.Then i tried <code>wordwrap()</code></p>
  
  <pre><code>&lt;?php echo wordwrap($lengthyString,25,"&amp;nbsp;&lt;br&gt;\n");?&gt;
  </code></pre>
  
  <p>But this is not working ,is there any solution to include<code>&amp;nbsp</code> in &amp;nbsp in <code>wordwrap</code></p>
  
  <p>Expected output:</p>
  
  <pre><code> Line1
   Line2
   This is the lengthy 
   string ,but i miss the 
   spacing after second 
   line. The length and 
   contents may vary
  </code></pre>
  
  <p>But I got like this</p>
  
  <pre><code> Line1
   Line2
    This is the lengthy 
  string ,but i miss the 
  spacing after second 
  line. The length and 
  contents may vary
  </code></pre>