From 3545520e81f266b99abbd0a22d6da04a7dd9f2a0 Mon Sep 17 00:00:00 2001 From: rch850 Date: Sat, 14 Mar 2020 00:05:41 +0900 Subject: [PATCH] docs: fix result of sanitization example (#36059) This commit fixes sanitization example in https://angular.io/guide/template-syntax#content-security. * Escape < and > of interpolation result. * Fix result of property binding result. PR Close #36059 --- aio/content/guide/template-syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/content/guide/template-syntax.md b/aio/content/guide/template-syntax.md index f032c1f90c..d89ede4b1a 100644 --- a/aio/content/guide/template-syntax.md +++ b/aio/content/guide/template-syntax.md @@ -821,8 +821,8 @@ content harmlessly. The following is the browser output of the `evilTitle` examples. -"Template Syntax" is the interpolated evil title. -"Template alert("evil never sleeps")Syntax" is the property bound evil title. +"Template <script>alert("evil never sleeps")</script> Syntax" is the interpolated evil title. +"Template Syntax" is the property bound evil title.