Advanced shortcode (BBCode) parser and engine for PHP
Fixed PHP 7.4 compatibility errors reported in #81 and #82.
Fixed #77, merged quality of life improvements from #73.
Fixed #74.
RegularParser
improvements and fixes:
T_STRING
tokens,preg_match_all()
with large inputs was sometimes silently failing and returning only subset of matches which reduced the number of reported shortcodes,content()
method effectively halving the call nesting level,xdebug.max_nesting_level
during parse()
to prevent development environment parsing errors,*
is now a valid shortcode name,Processor
improvements,Extended parameter simple values possible value range, #44.
Fixed minor WordPress compatibility issue with content detection in WordpressParser
.
Fixed bug happening when computing replacement of shortcode without handler that contained multibyte content.
Fixed issue with parsing shortcode tokens inside shortcode content.