Skip to content

Commit

Permalink
block widget fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ziracms committed May 29, 2020
1 parent 5bea358 commit 2240d14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zira/widgets/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ protected function _render() {
}

if (strpos($block->content, '<') === false ||
strpos($block->content, '>') === false ||
(strpos($block->content, '</') === false && strpos($block->content, '/>') === false)
strpos($block->content, '>') === false
) {
$block->content = Zira\Helper::html($block->content);
$parts = explode("\n", $block->content);
Expand Down

0 comments on commit 2240d14

Please sign in to comment.