making preprocessor more tolerant with > in attributes

eg. <description value="Use Admin >> Site config"/>
This commit is contained in:
ralf 2022-08-09 13:03:02 +02:00
parent 5f2d0d5bdd
commit b9da68dd7f

View File

@ -346,7 +346,7 @@ function send_template()
}
// change all attribute-names of new et2-* widgets to camelCase, and other attribute modifications for all web-components
$str = preg_replace_callback('/<(et2|records)-([a-z-]+)\s([^>]+)>/', static function(array $matches)
$str = preg_replace_callback('#<(et2|records)-([a-z-]+)\s(.*?")\s*/?>#s', static function(array $matches)
{
$attrs = parseAttrs($matches[3]);