We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4a196c commit b954a0dCopy full SHA for b954a0d
EventListener/EditInPlaceResponseListener.php
@@ -84,6 +84,10 @@ public function onKernelResponse(FilterResponseEvent $event)
84
85
$content = $event->getResponse()->getContent();
86
87
+ if (false === $content) {
88
+ return;
89
+ }
90
+
91
// Clean the content for malformed tags in attributes or encoded tags
92
$replacement = "\"$1🚫 Can't be translated here. 🚫\"";
93
$pattern = "@\\s*[\"']\\s*(.[a-zA-Z]+:|)(<x-trans.+data-value=\"([^&\"]+)\".+?(?=<\\/x-trans)<\\/x-trans>)\\s*[\"']@mi";
0 commit comments