0 votes
in Angular by
Is safe to use direct DOM API methods in terms of security?

1 Answer

0 votes
by

No,the built-in browser DOM APIs or methods don't automatically protect you from security vulnerabilities. In this case it is recommended to use Angular templates instead of directly interacting with DOM. If it is unavoidable then use the built-in Angular sanitization functions.

...