29 public function format($string): string
34 $string = str_replace(
"</li><br />",
"</li>", $string);
35 $string = str_replace(
"</li><br>",
"</li>", $string);
36 $string = str_replace(
'{',
'{', $string);
37 $string = str_replace(
'}',
'}', $string);
49 $string = nl2br($string);
61 $tags = self::getSelfAssessmentTags();
65 foreach ($tags as $t) {
66 $tstr .=
"<" . $t .
">";
102 $not_supported = [
'img'];
103 $tags = [
'br',
'table',
'td',
'tr',
'th'] + array_diff($st, $not_supported);
static _replaceMediaObjectImageSrc(string $a_text, int $a_direction=0, string $nic='')
Replaces image source from mob image urls with the mob id or replaces mob id with the correct image s...
migrateContentForLearningModule(ilAssSelfAssessmentMigrator $migrator)
static isHTML(string $a_text)
Checks if a given string contains HTML or not.
static secureString(string $a_str, bool $a_strip_html=true, string $a_allow="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static replaceLatexSpan(string $text)
Replace the latex delimiters used by the rich text editor Unfortunately these can't be processed by M...