-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
sanitize-html update to version 2 removed compiled sanitize-html.js (https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md#200-2020-09-23):
You should no longer directly link to a sanitize-html file directly in the browser as it is using modern Javascript that is not fully supported by all major browsers (depending on your definition). You should now include sanitize-html in your project build for this purpose if you have one.
It caused some errors when using sanitize-html for message decrypting:
"🔥[Js][Core] ------ js err -------\nCore parseDecryptMsg: TypeError: undefined is not a function (near \'...dereq_html_sanitize...\')\n@\nfmtContentBlock@\n@\nasyncFunctionResume@[native code]\n@[native code]\npromiseReactionJobWithoutPromise@[native code]\npromiseReactionJob@[native code]\n------- end js err -----"