# How can I keep comments in HTML source?

**URL:** <https://discourse.gohugo.io/t/how-can-i-keep-comments-in-html-source/1759>\
**Category:** support\
**Created:** [September 22, 2015, 6:56pm UTC](https://discourse.gohugo.io/t/how-can-i-keep-comments-in-html-source/1759 "2015-09-22T18:56:18Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stiobhart](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stiobhart/32/161_2.png) [@stiobhart](https://discourse.gohugo.io/u/stiobhart)\
**Post date:** [September 23, 2015, 12:02pm UTC](https://discourse.gohugo.io/t/how-can-i-keep-comments-in-html-source/1759/4 "2015-09-23T12:02:14Z")

</div>

Thusly:

`{{"<!-- some HTML comment //-->" | safeHTML }}`

Yes, it is a bit of a clunker.

@royston: _But comments in HTML in bulk is not a common thing people need_

WTF???

---

_[View the full topic](https://discourse.gohugo.io/t/how-can-i-keep-comments-in-html-source/1759)._
