BookStack/app/Util
Dan Brown 88c698796b
Fixed issue with HTML tags in custom head scripts
Fixes a strange issue of HTML tags within script tags being malformed
when part of the HTML custom head content due to the PHP parsing we do.
DOMDocument seemed to cause this upon load.
Adding LIBXML_SCHEMA_CREATE to the ->loadHTML call seems to fix this but
not really sure why. Doesn't seem to cause further issues though.
Tested with multiple scripts and styles and comments and meta tags.

- Also added new testing class to cover.
- As part of testing, added new folder within tests to house setting
  specific tests.

For #2914
2021-09-05 23:52:39 +01:00
..
CspService.php Added a couple of additional CSP rules 2021-09-04 14:34:43 +01:00
HtmlContentFilter.php Started application of CSP headers 2021-09-03 23:32:42 +01:00
HtmlNonceApplicator.php Fixed issue with HTML tags in custom head scripts 2021-09-05 23:52:39 +01:00