ngSanitize.$sanitize

Improve this Doc View Source $sanitize

  1. $sanitizeProvider
  2. service in module ngSanitize

Sanitizes an html string by stripping all potentially dangerous tokens.

The input is sanitized by parsing the HTML into tokens. All safe tokens (from a whitelist) are then serializ