Strip and slash alt tags on input radio buttons

This commit is contained in:
moodler
2005-03-17 11:37:31 +00:00
parent 9edbb35ce2
commit 646d5a0281
+1 -1
View File
@@ -107,7 +107,7 @@
foreach ($choice->answer as $key => $answer) {
if ($answer) {
echo "<td align=\"center\">";
echo "<input type=\"radio\" name=\"answer\" value=\"$key\" ".$answerchecked[$key]." alt=\"$answer\" />";
echo "<input type=\"radio\" name=\"answer\" value=\"$key\" ".$answerchecked[$key]." alt=\"".s(strip_tags($answer))."\" />";
echo format_text($answer);
echo "</td>";
}