Over on www.monkeyclaus.org I'm getting back slashes showing up on my
web pages, where this function outputs. This despite the explicit use
of stripslashes(). Does anyone know why this might be?
function printRecentWebl ogEntries($numb erToGet=5, $htmlSeparator= "") {
global $sql, $config;
extract($config );
$recentEntries = getRecentWeblog Entries($number ToGet);
if ($recentEntries ) $recentEntries = processArray($r ecentEntries,
"stripslashes") ;
echo "\n\n\n<div class=\"recentW eblogEntries\"> ";
echo "These are the most recent weblog entries on this website:";
if ($htmlSeparator == "") echo "<table
class=\"recentW eblogEntriesTab le\"><tr><td>" ;
for ($i=0; $i < count($recentEn tries); $i++) {
if ($i != 0 && $htmlSeparator == "") echo "</td><td>";
if ($htmlSeparator != "") echo $htmlSeparator;
$entry = $recentEntries[$i];
extract($rwArra y=$sql->putEntryIntoNa medArray($entry ));
$cbMainContent = stripslashes($c bMainContent);
$cbHeadline = stripslashes($c bHeadline);
$cbMainContent = strip_tags($cbM ainContent);
$cbMainContent = substr($cbMainC ontent, 0, 120);
echo "
<a href=\"$self?pa geId=$cbId\">
$cbHeadline - $cbMainContent <br> Posted by: $cbUserName
</a>
";
}
if ($htmlSeparator == "")echo "</td></tr></table>";
echo "</div>\n\n\n";
}
web pages, where this function outputs. This despite the explicit use
of stripslashes(). Does anyone know why this might be?
function printRecentWebl ogEntries($numb erToGet=5, $htmlSeparator= "") {
global $sql, $config;
extract($config );
$recentEntries = getRecentWeblog Entries($number ToGet);
if ($recentEntries ) $recentEntries = processArray($r ecentEntries,
"stripslashes") ;
echo "\n\n\n<div class=\"recentW eblogEntries\"> ";
echo "These are the most recent weblog entries on this website:";
if ($htmlSeparator == "") echo "<table
class=\"recentW eblogEntriesTab le\"><tr><td>" ;
for ($i=0; $i < count($recentEn tries); $i++) {
if ($i != 0 && $htmlSeparator == "") echo "</td><td>";
if ($htmlSeparator != "") echo $htmlSeparator;
$entry = $recentEntries[$i];
extract($rwArra y=$sql->putEntryIntoNa medArray($entry ));
$cbMainContent = stripslashes($c bMainContent);
$cbHeadline = stripslashes($c bHeadline);
$cbMainContent = strip_tags($cbM ainContent);
$cbMainContent = substr($cbMainC ontent, 0, 120);
echo "
<a href=\"$self?pa geId=$cbId\">
$cbHeadline - $cbMainContent <br> Posted by: $cbUserName
</a>
";
}
if ($htmlSeparator == "")echo "</td></tr></table>";
echo "</div>\n\n\n";
}
Comment