I have recently started using Angular. I am normally used to purify any html that is stored in my database. My backend uses php I use HTMLpurifier to purify html. But when I use angular string binding html entities for example don't display correctly:
data = '<data'
//template string binding:
<div>{{data}}</div>
Output on website: <data
So I saw in another question that I should use:
[innerHTML]='data'
Display HTML special characters in Angular 2 bindings?
My question is: Is it necessary to purify my html at all? Since it seems like angular string binding does prevent XSS from happening. That would be nice since that will speed up the performance of my server because it doesn't have to purify the html.