Elgg
Version master
|
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 15 of file AutoParagraph.php.
Elgg\Views\AutoParagraph::__construct | ( | ) |
Constructor.
Definition at line 72 of file AutoParagraph.php.
|
protected |
Add P and BR elements as necessary.
\DOMElement | $el | DOM element |
Definition at line 221 of file AutoParagraph.php.
Elgg\Views\AutoParagraph::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 93 of file AutoParagraph.php.
|
protected |
Definition at line 61 of file AutoParagraph.php.
|
protected |
Definition at line 35 of file AutoParagraph.php.
|
protected |
Definition at line 53 of file AutoParagraph.php.
|
protected |
Definition at line 25 of file AutoParagraph.php.
|
protected |
Definition at line 43 of file AutoParagraph.php.
|
protected |
Definition at line 67 of file AutoParagraph.php.
|
protected |
Definition at line 30 of file AutoParagraph.php.
Elgg\Views\AutoParagraph::$encoding = 'UTF-8' |
Definition at line 20 of file AutoParagraph.php.