update: only allow px for bbcode font size

This commit is contained in:
Roardom
2023-10-22 01:49:47 +00:00
parent 536abc2ca0
commit 8f9c2f8c22
+1 -1
View File
@@ -89,7 +89,7 @@ class Bbcode
'size' => [
'openBbcode' => '/^\[size=(\d+)\]/i',
'closeBbcode' => '[/size]',
'openHtml' => '<span style="font-size: clamp(10px, $1, 100px);">',
'openHtml' => '<span style="font-size: clamp(10px, $1px, 100px);">',
'closeHtml' => '</span>',
'block' => false,
],