docs(core): update security guide sanitize example (#26777)

The sanitizer now removes the content of script tags as well as the tag itself.

PR Close #26777
This commit is contained in:
Pete Bacon Darwin 2018-10-26 09:28:46 +01:00 committed by Matias Niemelä
parent d878f3df93
commit aefa06f7df
2 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ vulnerability. For example, code contained in a `<script>` tag is executed:
Angular recognizes the value as unsafe and automatically sanitizes it, which removes the `<script>`
tag but keeps safe content such as the text content of the `<script>` tag and the `<b>` element.
tag but keeps safe content such as the `<b>` element.
<figure>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 27 KiB