Changeset 45722 in spip-zone


Ignore:
Timestamp:
Mar 22, 2011, 2:13:25 PM (10 years ago)
Author:
fil@…
Message:

decodage des entites html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _contribs_/_importer_/memo/memo.php

    r45639 r45722  
    137137// gras (pas de {{ pour eviter tout conflit avec {)
    138138$lapage = preg_replace(",<(b|h[4-6])( [^>]*)?".">(.+)</\\1>,Uims", "@@b@@\\3@@/b@@", $lapage);
     139
     140// entites
     141include_spip('inc/charsets');
     142$lapage = html2unicode($lapage, true /* secure */);
     143
    139144// liens
    140145$lapage = preg_replace(",<a[ \t\n\r][^<>]*href=[^<>]*(http[^<>'\"]*)[^<>]*>(.*?)<\/a>,uims", "[\\2->\\1]", $lapage);
Note: See TracChangeset for help on using the changeset viewer.