HTML Sanitizer helps in removing the unwanted code and protects the code against security factors such as scripting attacks. It works by validating the built-in white list for markup that one always wants to protect.

BY Best Interview Question ON 26 Nov 2020