Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi authored and github-actions[bot] committed Oct 6, 2024
1 parent b6ad824 commit 0ee6ec1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Editors/MarkdownEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(','&lt;script','<script'],'')
->replace(['prompt(', 'eval(', '&lt;script', '<script'], '')
->markdown()
))->toHtml();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Editors/RichEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public static function render(string $content): string
{
return
str(html_entity_decode($content))
->replace(['prompt(','eval(','&lt;script','<script'],'');
->replace(['prompt(', 'eval(', '&lt;script', '<script'], '');
}
}
2 changes: 1 addition & 1 deletion src/Editors/TinyEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static function render(string $content): string
{
if (class_exists(TinyEditorAlias::class)) {
return str(html_entity_decode($content))
->replace(['prompt(','eval(','&lt;script','<script'],'');
->replace(['prompt(', 'eval(', '&lt;script', '<script'], '');
}

return $content;
Expand Down
2 changes: 1 addition & 1 deletion src/Editors/TipTapEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static function render(string $content): string
return tiptap_converter()
->asHTML(
str(html_entity_decode($content))
->replace(['prompt(','eval(','&lt;script','<script'],'')
->replace(['prompt(', 'eval(', '&lt;script', '<script'], '')
);
}

Expand Down

0 comments on commit 0ee6ec1

Please sign in to comment.