4 require_once
'Modules/TestQuestionPool/interfaces/interface.ilAssSelfAssessmentMigrator.php';
20 require_once
'Services/RTE/classes/class.ilRTE.php';
23 $string = str_replace(
"</li><br />",
"</li>", $string);
24 $string = str_replace(
"</li><br>",
"</li>", $string);
26 require_once
'Services/Utilities/classes/class.ilUtil.php';
30 $string = str_replace(
'{',
'{', $string);
31 $string = str_replace(
'}',
'}', $string);
44 $string = nl2br($string);
58 $ls =
'<span class="latex">';
63 $pos1 = strpos($string, $ls);
66 $pos2 = strpos($string, $le, $pos1);
70 $string = substr($string, 0, $pos2).
"[/tex]".substr($string, $pos2+7);
71 $string = substr($string, 0, $pos1).
"[tex]".substr($string, $pos1+20);
93 $tags = self::getSelfAssessmentTags();
137 $not_supported = array(
"img",
"p");
146 if (!in_array($s, $not_supported))
migrateContentForLearningModule(ilAssSelfAssessmentMigrator $migrator)
Abstract basic class which is to be extended by the concrete assessment question type classes...
static insertLatexImages($a_text, $a_start="\ex\, $a_end="\\tex\")
replace [text]...[/tex] tags with formula image code
static _replaceMediaObjectImageSrc($a_text, $a_direction=0, $nic=IL_INST_ID)
replaces image source from mob image urls with the mob id or replaces mob id with the correct image s...
static secureString($a_str, $a_strip_html=true, $a_allow="")
Remove unsecure tags.
static isHTML($a_text)
Checks if a given string contains HTML or not.