mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 02:34:24 +02:00
Add @jofalk PR #59 that fixes the issue with </edit>
tags not being stripped from front-end editor.
This commit is contained in:
@@ -423,7 +423,7 @@ class PageFrontEdit extends WireData implements Module {
|
||||
|
||||
if($hasEditTags) {
|
||||
// remove modal edit tags
|
||||
$out = preg_replace('!</?' . $tag . '\s[^>]*>\s*!is', '', $out);
|
||||
$out = preg_replace('!</?' . $tag . '(?:\s[^>]*>|>)\s*!is', '', $out);
|
||||
}
|
||||
|
||||
if($hasEditAttr) {
|
||||
|
Reference in New Issue
Block a user