PHP Classes

File: profiles/abbr.php

Recommend this page to a friend!
  Classes of Jill Lingoff   Sweeper   profiles/abbr.php   Download  
File: profiles/abbr.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: 4 years ago
Size: 884 bytes


Class file image Download

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(
'pre_internal_templating_macro' => array(
// notice that while acronyms and abbr are handled separately in sweeper due to them having been distinguished in HTML4, the user of sweeper should be unaware of this distinction since the prominence of HTML5

'HTML5' => true,
'apply_acronym_if_near_definition' => false,
'near_for_acronyms_finding' => 1000,
'near_for_acronyms_application' => 100,
'apply_combined_acronyms' => false,
'apply_combined_abbr' => true,
'abbr_instead_of_acronym' => true,
//'character_entity_encoding_type' => 'named',