Copied!

Adds inline and block HTML support

Trait
Properties
protected $inlineHtmlElements
 
  • var array HTML elements considered as inline elements.
  • see http://www.w3.org/wiki/HTML/Elements#Text-level_semantics
protected $selfClosingHtmlElements
 
  • var array HTML elements known to be self-closing.
Methods
protected consumeHtml ( $lines , $current )
 

Consume lines for an HTML block

protected identifyHtml ( $line , $lines , $current )
 

identify a line as the beginning of a HTML block.

protected parseEntity ( $text )
 

Parses an & or a html entity definition.

  • marker &
protected parseGt ( $text )
 

Escapes > characters.

  • marker >
protected parseInlineHtml ( $text )
 

Parses inline HTML.

  • marker <
protected renderHtml ( $block )
 

Renders an HTML block

protected renderInlineHtml ( $block )
 

renders a html entity.

© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only