3

As Salesforce recommend Sanitization of global Attributes, So we were looking for some Library which can sanitize the html for us. Is there any Library in Lightning or another JS library which we can use?

3

You can use secure filters third party library to sanitize

https://github.com/salesforce/secure-filters

This is recommended in the lightning security guidelines documented in the blog

https://developer.salesforce.com/page/Lightning_Security

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.