Adds inline and block HTML support
Trait
Properties |
protected $inlineHtmlElements = ['a', 'abbr', 'acronym', 'b', 'basefont', 'bdo', 'big', 'br', 'button', 'blink', 'cite', 'code', 'del', 'dfn', 'em', 'font', 'i', 'img', 'ins', 'input', 'iframe', 'kbd', 'label', 'listing', 'map', 'mark', 'nobr', 'object', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'select', 'small', 'spacer', 'span', 'strong', 'sub', 'sup', 'tt', 'var', 'u', 'wbr', 'time']
|
protected $selfClosingHtmlElements = ['br', 'hr', 'img', 'input', 'nobr']
|
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.
|
protected parseGt( $text) Escapes
|
protected parseInlineHtml( $text) Parses inline HTML.
|
protected renderHtml( $block) Renders an HTML block |
protected renderInlineHtml( $block) renders a html entity. |