Hey all,
I have a form that stores it's content in a database. When the stored information contains the html of a table it seems to cause display problems when displaying the contents using nl2br.
So when information is stored in the database like this...
Power Savings mail-in rebates...<table width="50%" border="0" cellpadding="3">
... get's displayed in a web page using this...
<?php echo nl2br($row_rs_promo['promo_details']); ?>
... the code in the page when displayed in a browser looks like this...
Power Savings mail-in rebates...<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<table border="0" cellpadding="3" width="50%">
I'm not sure where nl2br is finding so many breaks, or even one for that matter since the code in the database is on one line "rebates...<table".
Any ideas?
Thanks a lot as always!
Peter