Skip to content

Commit

Permalink
Improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
nlisgo committed Jan 26, 2018
1 parent 75389de commit f226152
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public function renderInlines($inlines) : string

public function renderBlock(AbstractBlock $block, $inTightList = false) : string
{
return strip_tags($this->htmlPurifier->purify($this->renderer->renderBlock($block, $inTightList)), self::ALLOW_TAGS);
$rendered = $this->renderer->renderBlock($block, $inTightList);
$purified = $this->htmlPurifier->purify($rendered);

return strip_tags($purified, self::ALLOW_TAGS);
}

public function renderBlocks($blocks, $inTightList = false) : string
Expand Down

0 comments on commit f226152

Please sign in to comment.