Update Composer packages
This commit is contained in:
parent
9252d9ce90
commit
134266af8a
176 changed files with 7930 additions and 2262 deletions
|
@ -28,7 +28,15 @@ class Inline
|
|||
public function __construct(DOMNode $node, array $marks = [])
|
||||
{
|
||||
$this->createMarkRules($marks);
|
||||
$this->html = trim(static::parseNode($node, $this->marks) ?? '');
|
||||
|
||||
$html = static::parseNode($node, $this->marks) ?? '';
|
||||
|
||||
// only trim HTML if it doesn't consist of only spaces
|
||||
if (trim($html) !== '') {
|
||||
$html = trim($html);
|
||||
}
|
||||
|
||||
$this->html = $html;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue