Changeset 65451 in spip-zone


Ignore:
Timestamp:
Sep 2, 2012, 3:45:37 PM (9 years ago)
Author:
maieul@…
Message:

encore un peu de purge du code avant de le passer à la moulinette

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/spip-bible/trunk/traduction/na28.php

    r65450 r65451  
    3939        $tab = explode('</body>',$code);
    4040        $code = $tab[0];
    41         $qp = spip_query_path($code,'body #main',array('omit_xml_declaration'=>true,'encoding'=>'UTF-8','use_parser'=>'xml'));
    42        
     41        $code = str_replace("</blockquote>",'',$code);
     42        $code = str_replace("<blockquote>",'',$code);
     43        $code = str_replace('<div class="lineBreak"></div>','',$code);
     44        $qp = spip_query_path($code,'.markdown',array('ignore_parser_warnings'=>true,'omit_xml_declaration'=>true,'encoding'=>'UTF-8','use_parser'=>'xml'));
     45   
     46    echo ($qp->xml());
     47   
     48    //$children = $qp->children();
     49
     50   
    4351}
    4452?>
Note: See TracChangeset for help on using the changeset viewer.