title: Make a PHP string display on multiple lines in a textarea, using a specified character to split it
body: <p>I have options stored in the database in the following format -</p>
  
  <p><code>option1:Option 1;option2:Option 2;option3:Option 3;option4:Option 4</code></p>
  
  <p>Users are able to edit these options, so when they are in the <code>&lt;textarea&gt;</code> I'd like for them to be displayed on seperate lines.</p>
  
  <pre><code>option1:Option 1
  option2:Option 2
  option3:Option 3
  option4:Option 4
  </code></pre>
  
  <p>I'm trying to do this by replacing the <code>';'</code> character that seperates the options with a new line (<code>str_replace(';', PHP_EOL, $poll['poll_options'])</code> - have also tried <code>"\r\n"</code>)</p>
  
  <p>Even though this appears to be working (<code>echo '&lt;pre&gt;'; print_r($poll['poll_options']); echo '&lt;/pre&gt;';</code> shows the options correcty on a new line), when I place the text in a <code>&lt;textarea&gt;</code> the options are only seperated be a space.</p>
  
  <p><strong>Edit</strong> - I've changed the code I used (now reflected in this post) to that suggested by @John Conde, and it now works in FF.</p>
  
  <p>Any tips on how to resolve? Thanks.</p>