155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
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)
{
$space = $html ? ' ' : ' ';
|
>
>
>
>
>
|
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
return str_replace(''', ''', htmlspecialchars($texte, ENT_QUOTES, 'UTF-8'));
}
static public function formatter_texte($texte)
{
$texte = Utils::SkrivToHTML($texte);
$texte = self::typo_fr($texte);
// Liens wiki
$texte = preg_replace_callback('!<a href="([^/.:@]+)">!i', function ($matches) {
return '<a href="' . WWW_URL . Wiki::transformTitleToURI($matches[1]) . '">';
}, $texte);
return $texte;
}
static public function typo_fr($str, $html = true)
{
$space = $html ? ' ' : ' ';
|