Skip to content

Commit

Permalink
Fix fatal Vue errors when inline <style> tags were included in Vizy…
Browse files Browse the repository at this point in the history
… block field rendering
  • Loading branch information
engram-design committed Nov 24, 2023
1 parent 4275d18 commit 28a4bd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fields/VizyField.php
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,9 @@ private function _getBlocksForInput($value, $placeholderKey, ElementInterface $e

$fieldsHtml = preg_replace('#<script>(.*?)<\/script>#is', '', $fieldsHtml);

// Similar situation for CSS
$fieldsHtml = preg_replace('#<style(.*?)<\/style>#is', '', $fieldsHtml);

$view->setNamespace($originalNamespace);

if ($footHtml) {
Expand Down

0 comments on commit 28a4bd5

Please sign in to comment.