Closed wilau2 closed 1 year ago
Recursively looping on the whole object to get all the content filed to pass in DOMPurify?
content
The more common methods are:
Traverse JSON Convert to MJML or HTML I would recommend the second. You can use DOMPurify or directly write a regular expression to remove scripts.
Recursively looping on the whole object to get all the
content
filed to pass in DOMPurify?