mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
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:
parent
0a3bdfaf79
commit
411efaee25
@ -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 = '-';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user