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?


You can use secure filters third party library to sanitize


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


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.