diff --git a/src/Editors/MarkdownEditor.php b/src/Editors/MarkdownEditor.php index 9d1d1c0..ddb1318 100644 --- a/src/Editors/MarkdownEditor.php +++ b/src/Editors/MarkdownEditor.php @@ -24,7 +24,7 @@ public static function render(string $content): string if (class_exists(MarkdownEditorAlias::class)) { return (new \Illuminate\Support\HtmlString( str(strip_tags($content)) - ->replace(['prompt(','eval(','<script','replace(['prompt(', 'eval(', '<script', 'markdown() ))->toHtml(); } diff --git a/src/Editors/RichEditor.php b/src/Editors/RichEditor.php index 4c3dd47..9e507f1 100644 --- a/src/Editors/RichEditor.php +++ b/src/Editors/RichEditor.php @@ -23,6 +23,6 @@ public static function render(string $content): string { return str(html_entity_decode($content)) - ->replace(['prompt(','eval(','<script','replace(['prompt(', 'eval(', '<script', 'replace(['prompt(','eval(','<script','replace(['prompt(', 'eval(', '<script', 'asHTML( str(html_entity_decode($content)) - ->replace(['prompt(','eval(','<script','replace(['prompt(', 'eval(', '<script', '