stfc_boy
08-13-2008, 03:42 PM
Hi All,
Wondering if anyone could help me. I have a piece of code which outputs data from a field in my database, but something like the word:
Side's
Comes out as:
side’s
<?
$aParagraphs = explode("\n", nl2br($body_text));
echo '<span style="font-weight:bold;font-size:120%;">' . htmlspecialchars_decode($aParagraphs[0]) . '</span>';
for ($i=1; $i < count($aParagraphs); $i++) {
echo '<span style="font-size:120%;">' . htmlspecialchars_decode($aParagraphs[$i]) . '</span>';
}
?>
Wondering if anyone could help me. I have a piece of code which outputs data from a field in my database, but something like the word:
Side's
Comes out as:
side’s
<?
$aParagraphs = explode("\n", nl2br($body_text));
echo '<span style="font-weight:bold;font-size:120%;">' . htmlspecialchars_decode($aParagraphs[0]) . '</span>';
for ($i=1; $i < count($aParagraphs); $i++) {
echo '<span style="font-size:120%;">' . htmlspecialchars_decode($aParagraphs[$i]) . '</span>';
}
?>