Elgg
Version 4.3
|
Create wrapper P and BR elements in HTML depending on newlines. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
process ($html) | |
Create wrapper P and BR elements in HTML depending on newlines. More... | |
Public Attributes | |
$encoding = 'UTF-8' | |
Protected Member Functions | |
addParagraphs (DOMElement $el) | |
Add P and BR elements as necessary. More... | |
Protected Attributes | |
$_doc = null | |
$_xpath = null | |
$_blocks | |
$_inlines | |
$_descendList | |
$_alterList | |
$_unique = '' | |
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.
In DIV elements, Ps are only added when there would be at least two of them.
Definition at line 13 of file ElggAutoP.php.
ElggAutoP::__construct | ( | ) |
Constructor.
Definition at line 70 of file ElggAutoP.php.
|
protected |
Add P and BR elements as necessary.
DOMElement | $el | DOM element |
Definition at line 218 of file ElggAutoP.php.
ElggAutoP::process | ( | $html | ) |
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.
In DIV, LI, TD, and TH elements, Ps are only added when their would be at least two of them.
string | $html | snippet |
Definition at line 91 of file ElggAutoP.php.
|
protected |
Definition at line 59 of file ElggAutoP.php.
|
protected |
Definition at line 33 of file ElggAutoP.php.
|
protected |
Definition at line 51 of file ElggAutoP.php.
|
protected |
Definition at line 23 of file ElggAutoP.php.
|
protected |
Definition at line 41 of file ElggAutoP.php.
|
protected |
Definition at line 65 of file ElggAutoP.php.
|
protected |
Definition at line 28 of file ElggAutoP.php.
ElggAutoP::$encoding = 'UTF-8' |
Definition at line 18 of file ElggAutoP.php.