diff --git a/public/docs/ts/latest/guide/security.jade b/public/docs/ts/latest/guide/security.jade index 701f10d4e6..e747e381a4 100644 --- a/public/docs/ts/latest/guide/security.jade +++ b/public/docs/ts/latest/guide/security.jade @@ -95,7 +95,7 @@ h2#xss Preventing Cross-Site Scripting (XSS) The template below binds the value of `htmlSnippet`, once by interpolating it into an element's content, and once by binding it to the `innerHTML` property of an element. -+makeExcerpt('app/inner-html-binding.component.html') ++makeExample('app/inner-html-binding.component.html') :marked Interpolated content is always escaped - the HTML is not interpreted, and the browser displays @@ -104,7 +104,9 @@ h2#xss Preventing Cross-Site Scripting (XSS) For the HTML to be interpreted, we must bind to an HTML property, such as `innerHTML`. But binding a potentially attacker controlled value into `innerHTML` would normally cause an XSS vulnerability. For example, code contained in a `