MDL-39507 questions: fix pluginfile URLs before format_text.

This commit is contained in:
Jean-Michel Vedrine
2013-08-08 10:05:48 +01:00
committed by Tim Hunt
parent 50ff861263
commit 6c23d0d403
6 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ abstract class question_definition {
* @return string the equivalent plain text.
*/
public function html_to_text($text, $format) {
return html_to_text(format_text($text, $format, array('noclean' => true)), 0, false);
return to_plain_text($text, $format, array('noclean' => true));
}
/** @return the result of applying {@link format_text()} to the question text. */