-
-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
Description
Platform
Windows
Template before formatting
@php
function stripSpecificTags(string $input, array $tags)
{
foreach ($tags as $tag) {
$input = preg_replace(
"/<\\/?{$tag}(.|\\s)*?>/",
"",
$input
);
}
return $input;
}
@endphpTemplate after formatting
@php
function stripSpecificTags(string $input, array $tags)
{
foreach ($tags as $tag) {
$input = preg_replace("/<\\/?{$tag}(.|\\s)*@endphp/", '', $input);
}
return $input;
}
?>Expected Behaviour
It seems that this extension really doesn't like the ?> inside the regex...
Tbh, just putting ?> anywhere in the code reproduces the problem, like below:
@php
$var = "?>";
@endphpRelevant log output
Reactions are currently unavailable