MDL-5327 - When making up a default question name from the question text, strip any HTML tags.
This commit is contained in:
@@ -179,7 +179,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 = '-';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user