MDL-5327 - When making up a default question name from the question text, strip any HTML tags. Merged from MOODLE_18_STABLE.

This commit is contained in:
tjhunt 2007-09-27 06:54:17 +00:00
parent 0a3bdfaf79
commit 411efaee25

View File

@ -255,7 +255,7 @@ class default_questiontype {
}
if (empty($question->name)) {
$question->name = shorten_text($question->questiontext, 15);
$question->name = shorten_text(strip_tags($question->questiontext), 15);
if (empty($question->name)) {
$question->name = '-';
}