angularjs - angular- data-ng-bind-html - how its work -



angularjs - angular- data-ng-bind-html - how its work -

need help in understand data-ng-bind-html. safe do:

<div data-ng-bind-html="pagehtml"></div>

what happen if pagehtml come users , contein scripts or html code can alter page?

if check here https://docs.angularjs.org/api/ng/directive/ngbindhtml $sanitaze, sanitazor runs through code , removes possible injections , unsafe content scripts or js executions, after i'd suggest: trust no one

angularjs

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -