29     public function format($string): string
    33         $string = str_replace(
"</li><br />", 
"</li>", $string);
    34         $string = str_replace(
"</li><br>", 
"</li>", $string);
    37         $string = str_replace(
'{', 
'{', $string);
    38         $string = str_replace(
'}', 
'}', $string);
    50             $string = nl2br($string);
    64         $ls = 
'<span class="latex">';
    68             $pos1 = strpos($string, $ls);
    70                 $pos2 = strpos($string, $le, $pos1);
    73                     $string = substr($string, 0, $pos2) . 
"[/tex]" . substr($string, $pos2 + 7);
    74                     $string = substr($string, 0, $pos1) . 
"[tex]" . substr($string, $pos1 + 20);
    92         $tags = self::getSelfAssessmentTags();
    96         foreach ($tags as $t) {
    97             $tstr .= 
"<" . $t . 
">";
   133         $not_supported = [
'img'];
   134         $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 getInstance()
Singleton: get instance for use in ILIAS requests with a config loaded from the settings.