Skip to content

Commit

Permalink
Fix - Nested tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nibra committed Mar 29, 2022
1 parent f4be050 commit 09733d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ protected function cleanTags($source)

if (($tagOpenNested !== false) && ($tagOpenNested < $tagOpenEnd))
{
$preTag .= StringHelper::substr($postTag, 0, ($tagOpenNested + 1));
$preTag .= StringHelper::substr($postTag, 1, $tagOpenNested);
$postTag = StringHelper::substr($postTag, ($tagOpenNested + 1));
$tagOpenStart = StringHelper::strpos($postTag, '<');

Expand Down

0 comments on commit 09733d7

Please sign in to comment.