Skip to content

Commit

Permalink
PHP Renderer: removed redundant removal of meta-elements
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed May 30, 2020
1 parent f9eb0e2 commit 2e12791
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Renderers/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,7 @@ protected function renderQuick($xml)
$html = preg_replace_callback(
$this->quickRegexp,
[$this, 'renderQuickCallback'],
preg_replace(
'(<[eis]>[^<]*</[eis]>)',
'',
substr($xml, 1 + strpos($xml, '>'), -4)
)
substr($xml, 1 + strpos($xml, '>'), -4)
);

return str_replace('<br/>', '<br>', $html);
Expand Down

0 comments on commit 2e12791

Please sign in to comment.