Remove reference to Internet Explorer conditional comments (#1975)

The Internet Explorer conditional comments example was removed in 8e3f9ca64b48caffe39eba9469e9fc0daa57ca9e
This commit is contained in:
Joris Roovers 2023-02-19 21:33:12 +00:00 committed by GitHub
parent 3e3458f09d
commit c8070e5787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
{{ "<!-- This is an HTML comment -->" | safeHTML }}
```
If you need variables to construct such HTML comments, just pipe `printf` to `safeHTML`.
For example:
```go-html-template
{{ printf "<!-- Our website is named: %s -->" .Site.Title | safeHTML }}