Ensure that tooltiptext hasn't tags.

This commit is contained in:
stronk7
2005-03-25 19:01:32 +00:00
parent 9104b63564
commit 0ea03c56f2
+2 -2
View File
@@ -23,7 +23,7 @@ function rss_get_link($courseid, $userid, $modulename, $id, $tooltiptext='') {
$rsspix = $CFG->pixpath .'/i/rss.gif';
return '<a href="'. $rsspath .'"><img src="'. $rsspix .'" title="'. $tooltiptext .'" alt="" /></a>';
return '<a href="'. $rsspath .'"><img src="'. $rsspix .'" title="'. strip_tags($tooltiptext) .'" alt="" /></a>';
}
@@ -405,4 +405,4 @@ function rss_unhtmlentities($string) {
$trans_tbl = array_flip ($trans_tbl);
return strtr ($string, $trans_tbl);
}
?>
?>