125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
static public function echapper_xml($texte)
{
return str_replace(''', ''', htmlspecialchars($texte, ENT_QUOTES, 'UTF-8'));
}
static public function formatter_texte($texte)
{
$texte = Utils::htmlLinksOnUrls($texte);
$texte = Utils::htmlSpip($texte);
$texte = Utils::htmlGarbage2xhtml($texte);
$texte = self::typo_fr($texte);
return $texte;
}
static public function typo_fr($str, $html = true)
{
|
<
|
<
<
|
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
static public function echapper_xml($texte)
{
return str_replace(''', ''', htmlspecialchars($texte, ENT_QUOTES, 'UTF-8'));
}
static public function formatter_texte($texte)
{
$texte = Utils::SkrivToHTML($texte);
$texte = self::typo_fr($texte);
return $texte;
}
static public function typo_fr($str, $html = true)
{
|