Overview
Comment:Méthode inutilisée
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 66f10eafffab61931f90750691c938199787063b
User & Date: bohwaz on 2019-08-23 14:59:02
Other Links: manifest | tags
Context
2019-09-16
23:24
Correctif : limite de nombre de résultats non respectée sur les recherches enregistrées check-in: 3743f3d549 user: bohwaz tags: trunk, stable
2019-08-23
14:59
Méthode inutilisée check-in: 66f10eafff user: bohwaz tags: trunk, stable
2019-06-05
10:09
Faire apparaître l'intitulé de la cotisation dans le libellé de l'écriture check-in: 2c780e324e user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Utils.php from [b08ae6096e] to [5e411bcff2].

297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320

        $str = preg_replace('#&[^;]+;#', '', $str); // supprime les autres caractères
        $str = preg_replace('![^[:ascii:]]+!', '', $str);

        return $str;
    }

    static public function htmlLinksOnUrls($str)
    {
        return preg_replace_callback('!(?<=\s|^)((?:(ftp|https?|file|ed2k|ircs?)://|(magnet|mailto|data|tel|fax|geo|sips?|xmpp):)([^\s<]+))!',
            function ($match) {
                $proto = $match[2] ?: $match[3];
                $text = ($proto == 'http' || $proto == 'mailto') ? $match[4] : $match[1];
                return '<a class="'.$proto.'" href="'.htmlspecialchars($match[1], ENT_QUOTES, 'UTF-8').'">'.htmlspecialchars($text, ENT_QUOTES, 'UTF-8').'</a>';
            }, $str);
    }

    /**
     * Transforme un texte SkrivML en HTML
     * @param  string $str Texte SkrivML
     * @return string      Texte HTML
     */
    static public function SkrivToHTML($str)
    {







<
<
<
<
<
<
<
<
<
<







297
298
299
300
301
302
303










304
305
306
307
308
309
310

        $str = preg_replace('#&[^;]+;#', '', $str); // supprime les autres caractères
        $str = preg_replace('![^[:ascii:]]+!', '', $str);

        return $str;
    }











    /**
     * Transforme un texte SkrivML en HTML
     * @param  string $str Texte SkrivML
     * @return string      Texte HTML
     */
    static public function SkrivToHTML($str)
    {