mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Simplify
This commit is contained in:
parent
fc23ca5ef5
commit
65450f47cd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user