allow whitespace after last attribute eg. <description value="Something" />

This commit is contained in:
ralf 2022-08-09 16:05:09 +02:00
parent cc59648453
commit e438f89371

View File

@ -176,7 +176,7 @@ function send_template()
}, $str);
// replace just description, as they often contain >, like label="> %s"
$str = preg_replace('#<description\s(.*?")/>#s', '<et2-description $1></et2-description>', $str);
$str = preg_replace('#<description\s(.*?")\s*/>#s', '<et2-description $1></et2-description>', $str);
// modify <(vfs-mime|link-string|link-list) --> <et2-*
$str = preg_replace_callback(ADD_ET2_PREFIX_LEGACY_REGEXP, static function (array $matches) {