From c8070e57870d32ca90002219578fb6a638f07c6c Mon Sep 17 00:00:00 2001 From: Joris Roovers Date: Sun, 19 Feb 2023 21:33:12 +0000 Subject: [PATCH] Remove reference to Internet Explorer conditional comments (#1975) The Internet Explorer conditional comments example was removed in 8e3f9ca64b48caffe39eba9469e9fc0daa57ca9e --- content/en/templates/introduction.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/content/en/templates/introduction.md b/content/en/templates/introduction.md index 87b7cab35b..5145b04be4 100644 --- a/content/en/templates/introduction.md +++ b/content/en/templates/introduction.md @@ -496,7 +496,17 @@ Will render `Bonsoir, Eliott.`, and not care about the syntax error (`add 0 + 2` ### HTML comments -If you need to produce HTML comments from your templates, take a look at the [Internet Explorer conditional comments]({{< relref "introduction.md#ie-conditional-comments" >}}) example. If you need variables to construct such HTML comments, just pipe `printf` to `safeHTML`. For example: +You can add html comments by piping a string HTML code comment to `safeHTML`. + +For example: + +```go-html-template +{{ "" | safeHTML }} +``` + +If you need variables to construct such HTML comments, just pipe `printf` to `safeHTML`. + +For example: ```go-html-template {{ printf "" .Site.Title | safeHTML }}