1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00
This commit is contained in:
Aidan Woods 2019-02-10 23:10:57 +00:00
parent fc23ca5ef5
commit 65450f47cd
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -156,11 +156,9 @@ final class Element implements Renderable
/** @return string */
public function getHtml()
{
$html = '';
$elementName = CharacterFilter::htmlElementName($this->name);
$html .= '<' . $elementName;
$html = '<' . $elementName;
if (! empty($this->attributes)) {
foreach ($this->attributes as $name => $value) {