PHP Classes

File: profiles/styles_to_classes_full.php

Recommend this page to a friend!
  Classes of Jill Lingoff   Sweeper   profiles/styles_to_classes_full.php   Download  
File: profiles/styles_to_classes_full.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Sweeper
Clean HTML to remove unwanted tags and attributes
Author: By
Last change:
Date: 5 years ago
Size: 637 bytes
 

Contents

Class file image Download
<?php

return array(

   
// execution macro: this defines the methods you want to call, each and every one of these "cleans" something
    // call the methods how many times you want, change the order as needed
   
   
'macro' => array(
   
   
//'tidy_code', // macro automatically tidies at the start
   
'style_cdata',
   
   
'dom_init',
   
'DOM_styles_to_classes_full',
   
'dom_save',
   
   
'post_dom_stripme',

   
'tidy_code',
   
    ),

   
'make_new_classes' => true,
   
'new_classes' => 'embedded', // embedded or new_stylesheet
   
'new_class_name' => 'new_class',
   
   
'use_local_DTD' => true,
   
'local_DTD' => 'DTD' . DIRECTORY_SEPARATOR . 'xhtml1-strict.dtd',
   
   
);

?>