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 printRecentWeblogEntries($numberToGet=5, $htmlSeparator="") {
global $sql, $config;
extract($config);
$recentEntries = getRecentWeblogEntries($numberToGet);
if ($recentEntries) $recentEntries = processArray($recentEntries,
"stripslashes");
echo "\n\n\n<div class=\"recentWeblogEntries\">";
echo "These are the most recent weblog entries on this website:";
if ($htmlSeparator == "") echo "<table
class=\"recentWeblogEntriesTable\"><tr><td>";
for ($i=0; $i < count($recentEntries); $i++) {
if ($i != 0 && $htmlSeparator == "") echo "</td><td>";
if ($htmlSeparator != "") echo $htmlSeparator;
$entry = $recentEntries[$i];
extract($rwArray=$sql->putEntryIntoNamedArray($entry));
$cbMainContent = stripslashes($cbMainContent);
$cbHeadline = stripslashes($cbHeadline);
$cbMainContent = strip_tags($cbMainContent);
$cbMainContent = substr($cbMainContent, 0, 120);
echo "
<a href=\"$self?pageId=$cbId\">
$cbHeadline - $cbMainContent <br> Posted by: $cbUserName
</a>
";
}
if ($htmlSeparator == "")echo "</td></tr></table>";
echo "</div>\n\n\n";
}