Skip to content

Compiled Core js throws errors after sanitize-html update #1285

@sosnovsky

Description

@sosnovsky

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 -----"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions