[preprocessHtml] TrustedHtml.replace() does not exist
Opened this issue · 0 comments
t2ym commented
[preprocessHtml] TrustedHtml.replace() does not exist
Root Cause
TrustedHtml
is not a string and thus does not have.replace()
method.innerHtml = {TrustedHtml object}
should become invalid if string is assigned
Ad-hoc Workaround
- Delete
window.trustedTypes
inbootstrap.js
like this
if (typeof window === 'object' && window.trustedTypes) { delete window.trustedTypes; }