Forum Moderators: coopster
Everything works fine but every now and then the diplayed page throws a wobbly (everything out of line and all the fonts altered) when double quotes are used; it's really wierd because it only happens now and then. I even have one paragraph in the database with two quotes; if I remove one of the set of quotes the page displays fine!
I'm thinking it has something to do with the <div> tag I'm using to display the articles;
<div style="padding:30;padding-left:80;padding-right:70;padding-bottom:40;color:000000" class="tah11">
<h2><?php echo nl2br($articleheading);?></h2>
<br /><br />
<?php echo nl2br($articlebody);?>
</div>
For example:
$dbIn = str_replace('"', 'zz', nl2br($articleheading))
Then when printing to page:
$dbOut = str_replace('zz', '"', nl2br($articleheading))
It's a bit of a hack but it's tough without seeing the whole process.