Changeset 112338 in spip-zone


Ignore:
Timestamp:
Nov 6, 2018, 2:36:37 PM (7 months ago)
Author:
gouz@…
Message:

changement de version majeur, on passe a 5.0.0 pour intégrer deux versions de la librairie : html4(https://github.com/ezyang/htmlpurifier) et html5(https://gitlab.com/9hozt/html5purfier). La version html5 prend en charge les nouveaux elements (https://www.w3.org/TR/html5-diff/#new-elements), les nouveaux attributs (https://www.w3.org/TR/html5-diff/#new-attributes), la norme ARIA (https://www.w3.org/TR/wai-aria-1.1/) et les microdata (https://www.w3.org/TR/microdata/)

Location:
_plugins_/htmlpurifier/trunk
Files:
340 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/htmlpurifier/trunk/inc/safehtml.php

    r112271 r112338  
    2323                return $a;
    2424
    25         include_spip('lib/HTMLPurifier.standalone');
    26         include_spip('HTMLPurifier.extended');
    27 
     25  include_spip('inc/utils');
     26  if ( html5_permis() ){
     27    include_spip('lib/html5/HTMLPurifier.standalone');
     28    include_spip('HTMLPurifier.extended'); 
     29  } else {
     30    include_spip('lib/html4/HTMLPurifier.standalone');
     31    include_spip('HTMLPurifier.extended'); 
     32  }
     33 
    2834        $config = HTMLPurifier_Config::createDefault();
    2935
  • _plugins_/htmlpurifier/trunk/paquet.xml

    r112302 r112338  
    22        prefix="htmlpurifier"
    33        categorie="outil"
    4         version="4.10.0.13"
     4        version="5.0.0.1"
    55        etat="dev"
    66        compatibilite="[3.2.1;3.2.99]"
Note: See TracChangeset for help on using the changeset viewer.