Property | Type | Description | |
---|---|---|---|
$encoding |
Property | Type | Description | |
---|---|---|---|
$_alterList | array | Add Ps inside these elements | |
$_blocks | |||
$_descendList | array | Descend into these elements to add Ps | |
$_doc | DOMDocument | ||
$_inlines | array | ||
$_unique | string | ||
$_xpath | DOMXPath |
Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
process ( string $html ) : string | false | Create wrapper P and BR elements in HTML depending on newlines. Useful when users use newlines to signal line and paragraph breaks. In all cases output should be well-formed markup. |
Method | Description | |
---|---|---|
addParagraphs ( DOMElement $el ) : void | Add P and BR elements as necessary |
protected addParagraphs ( DOMElement $el ) : void | ||
$el | DOMElement | DOM element |
return | void |
protected array $_alterList | ||
return | array |
protected array $_descendList | ||
return | array |