Changeset 56893 in spip-zone


Ignore:
Timestamp:
Jan 10, 2012, 10:39:14 PM (8 years ago)
Author:
fil@…
Message:

supprimer le doctype

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/office2spip/inc/fonctionsale.php

    r56885 r56893  
    374374                        return avant_sale($contenu);
    375375
     376                $contenu = preg_replace(',<!doctype[^>]*>\s*,si', '', $contenu);
     377
    376378                // PRETRAITEMENTS
    377379                $contenu = str_replace("\n\r", "\r", $contenu); // echapper au greedyness de preg_replace
Note: See TracChangeset for help on using the changeset viewer.