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
Post a Comment