mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Simplify
This commit is contained in:
@@ -156,11 +156,9 @@ final class Element implements Renderable
|
|||||||
/** @return string */
|
/** @return string */
|
||||||
public function getHtml()
|
public function getHtml()
|
||||||
{
|
{
|
||||||
$html = '';
|
|
||||||
|
|
||||||
$elementName = CharacterFilter::htmlElementName($this->name);
|
$elementName = CharacterFilter::htmlElementName($this->name);
|
||||||
|
|
||||||
$html .= '<' . $elementName;
|
$html = '<' . $elementName;
|
||||||
|
|
||||||
if (! empty($this->attributes)) {
|
if (! empty($this->attributes)) {
|
||||||
foreach ($this->attributes as $name => $value) {
|
foreach ($this->attributes as $name => $value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user