Describe the bug
When putting custom HTML inside of a <script> tag, all closing tags are removed.
Steps To Reproduce
Steps to reproduce the behavior:
- Start with a fresh install of BookStack
- Add the following to the Custom HTML Head Content:
<script>
<div></div>
</script>
- View the page source on any page in the wiki.
- See that the inserted content is only:
Expected behavior
I expected the closing tags to not be scrubbed from the custom HTML field.
Your Configuration (please complete the following information):
- Exact BookStack Version (Found in settings): v21.08.2
- PHP Version: 7.4.21
- Hosting Method (Nginx/Apache/Docker): Nginx
Additional context
I am attempting to work on a new solution for custom Markdown parsing, resolving ticket #2761
Describe the bug
When putting custom HTML inside of a <script> tag, all closing tags are removed.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected the closing tags to not be scrubbed from the custom HTML field.
Your Configuration (please complete the following information):
Additional context
I am attempting to work on a new solution for custom Markdown parsing, resolving ticket #2761