1
0
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:
Ryan Cramer
2017-03-30 06:57:21 -04:00
parent c5033e1e42
commit 2d1864c80d

View File

@@ -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) {