Decode HTML Entities

This implements HTML5 as of revision 967 (2007-06-28)

deprecated Use DOMDocument instead!
package SimplePie

 Methods

Create an instance of the class with the input data

__construct(string $data) 
access public

Parameters

$data

string

Input data

Consume the next byte

consume() : mixed
access private

Returns

mixedThe next byte, or false, if there is no more data

Consume a range of characters

consume_range(string $chars) : mixed
access private

Parameters

$chars

string

Characters to consume

Returns

mixedA series of characters that match the range, or false

Decode an entity

entity() 
access private

Parse the input data

parse() : string
access public

Returns

stringOutput data

Unconsume one byte

unconsume() 
access private

 Properties

 

Currently consumed bytes

$consumed : string

Default

''
access private
 

Data to be parsed

$data : string

Default

''
access private
 

Position of the current byte being parsed

$position : integer

Default

0
access private