Convert special characters to HTML entities in overboard.php
This commit is contained in:
parent
cd883734fa
commit
d94ea073ed
|
@ -305,7 +305,7 @@ foreach($files as $article) {
|
||||||
} else {
|
} else {
|
||||||
$mysnippet = substr($mysnippet, 0, $snippetlength);
|
$mysnippet = substr($mysnippet, 0, $snippetlength);
|
||||||
}
|
}
|
||||||
echo "<p class=np_ob_body>".$mysnippet."</p>\r\n";
|
echo "<p class=np_ob_body>".htmlspecialchars($mysnippet, ENT_QUOTES)."</p>\r\n";
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
if($results++ > ($maxdisplay - 2))
|
if($results++ > ($maxdisplay - 2))
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue