A

Admin • 828.70K Points
Coach

Q. How do you prevent Angular from sanitizing and trusting HTML content?

  • (A) Use DomSanitizer’s bypassSecurityTrustHtml method
  • (B) Use innerHTML binding directly
  • (C) Use ngNonBindable directive
  • (D) Use Renderer2
  • Correct Answer - Option(A)
  • Views: 19
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
DomSanitizer allows marking HTML as safe to bypass Angular sanitization.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.