Properties

$tag_counts

$tag_counts : 

Type

$allowed

$allowed : 

tags and attributes that are allowed

Type

$no_close

$no_close : 

tags which should always be self-closing (e.g. "<img />")

Type

$always_close

$always_close : 

tags which must always have seperate opening and closing tags (e.g. "<b></b>")

Type

$protocol_attributes

$protocol_attributes : 

attributes which should be checked for valid protocols

Type

$allowed_protocols

$allowed_protocols : 

protocols which are allowed

Type

$remove_blanks

$remove_blanks : 

tags which should be removed if they contain no content (e.g. "<b></b>" or "<b />")

Type

$strip_comments

$strip_comments : 

should we remove comments?

Type

$always_make_tags

$always_make_tags : 

should we try and make a b tag out of "b>"

Type

$allow_numbered_entities

$allow_numbered_entities : integer

Allows decimal entities.

An entity has to decimal format &#32. For example, the entity @ is the code>@</code character.

Type

integer

$allow_hexadecimal_entities

$allow_hexadecimal_entities : integer

Allows hexadecimal entities.

An entity has to decimal format &#x20. For example, the entity @ is the code>@</code character.

Type

integer

$allowed_entities

$allowed_entities : 

Type

Methods

go()

go(  $data) 

Parameters

$data

escape_comments()

escape_comments(  $data) 

Parameters

$data

balance_html()

balance_html(  $data) 

Parameters

$data

check_tags()

check_tags(  $data) 

Parameters

$data

process_tag()

process_tag(  $data) 

Parameters

$data

process_param_protocol()

process_param_protocol(  $data) 

Parameters

$data

process_remove_blanks()

process_remove_blanks(  $data) 

Parameters

$data

fix_case()

fix_case(  $data) 

Parameters

$data

fix_case_inner()

fix_case_inner(  $data) 

Parameters

$data

validate_entities()

validate_entities(  $data) 

Parameters

$data

check_entity()

check_entity(  $preamble,   $term) 

Parameters

$preamble
$term

is_valid_entity()

is_valid_entity(string  $entity) : boolean

Determines if the string provided is a valid entity.

Parameters

string $entity

String to test against.

Returns

boolean

not_control_caracter()

not_control_caracter(string|integer  $data) : boolean

Determines if the data provided is not a control character.

Parameters

string|integer $data

Data to test against like "64" or "x40".

Returns

boolean

decode_entities()

decode_entities(  $data) 

Parameters

$data

decode_hex_entity()

decode_hex_entity(  $m) 

Parameters

$m

decode_dec_entity()

decode_dec_entity(  $m) 

Parameters

$m

decode_num_entity()

decode_num_entity(  $orig_type,   $d) 

Parameters

$orig_type
$d

StripSingle()

StripSingle(  $data) 

Parameters

$data