diff --git a/api/etemplate.php b/api/etemplate.php index aeef2f1750..5bac662c0b 100644 --- a/api/etemplate.php +++ b/api/etemplate.php @@ -349,7 +349,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(.*?")\s*>\s*<#s', static function(array $matches) + $str = preg_replace_callback('#<(et2|records)-([a-z-]+)\s(.*?")\s*/?>\s*<#s', static function(array $matches) { $attrs = parseAttrs($matches[3]);