"WARNING: sanitizing HTML stripped some content" and how to deal with it properly

added by JavaScript Kicks
9/3/2019 7:54:17 AM

245 Views

With DOMPurify we can make a pipe that will not only mark value as safe but will actually make it so. We would need to run it through DOMPurify.sanitize method and mark it as safe with provided context: That is all there is to make inlining HTML safe.


0 comments