Hi Chaitanya,

$sce only detects invalid HTML, you need to provide a valid HTML document. 
If you want to sanitise your HTML, you need to do this before your feed it 
to $sce. 
You can use a library like XSS <http://jsxss.com/en/try.html>to do that. 
(there are a lot more of those, this one came up first in a google search!)

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to