Skip to content

Commit 2049497

Browse files
committed
Use wrapHtml
1 parent 700f1ef commit 2049497

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

BbCode/TagRenderer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ private static function renderTag($depth, $tagChildren, $tagOption,
133133
$anchorId = self::getAnchorId($uniqueId, $tagChildren);
134134
if (strlen($num) > 0)
135135
$num .= '    ';
136-
return "<$tag class=\"$htmlClass\" id=\"$anchorId\">$num$content</$tag>";
136+
return $renderer->wrapHtml(
137+
"<$tag class=\"$htmlClass\" id=\"$anchorId\">",
138+
"$num$content", "</$tag>");
137139
}
138140

139141
private static function buildOptions($tagOption, $options = [])

0 commit comments

Comments
 (0)