Свойство | Тип | Описание | |
---|---|---|---|
$encoding |
Свойство | Тип | Описание | |
---|---|---|---|
$_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 |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
addParagraphs ( DOMElement $el ) : void | Add P and BR elements as necessary |
protected addParagraphs ( DOMElement $el ) : void | ||
$el | DOMElement | DOM element |
Результат | void |
protected array $_alterList | ||
Результат | array |
protected array $_descendList | ||
Результат | array |