diff --git a/config/markdown.php b/config/markdown.php
index 16fb74a..98666ab 100644
--- a/config/markdown.php
+++ b/config/markdown.php
@@ -33,7 +33,10 @@ return [
*
* More info: https://spatie.be/docs/laravel-markdown/v1/using-the-blade-component/passing-options-to-commonmark
*/
- 'commonmark_options' => [],
+ 'commonmark_options' => [
+ 'html_input' => 'escape',
+ 'allow_unsafe_links' => false,
+ ],
/*
* Rendering markdown to HTML can be resource intensive. By default
diff --git a/tests/Feature/MarkdownXssProtectionTest.php b/tests/Feature/MarkdownXssProtectionTest.php
new file mode 100644
index 0000000..eccce2f
--- /dev/null
+++ b/tests/Feature/MarkdownXssProtectionTest.php
@@ -0,0 +1,40 @@
+toHtml('');
+
+ expect($html)->not->toContain('