# Read html from inside a getCSV

**URL:** <https://discourse.gohugo.io/t/read-html-from-inside-a-getcsv/40329>\
**Category:** support\
**Created:** [September 2, 2022, 7:15am UTC](https://discourse.gohugo.io/t/read-html-from-inside-a-getcsv/40329 "2022-09-02T07:15:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [September 2, 2022, 2:04pm UTC](https://discourse.gohugo.io/t/read-html-from-inside-a-getcsv/40329/2 "2022-09-02T14:04:53Z")

</div>

Assuming you trust the data, pass the value through the [`safeHTML`](https://gohugo.io/functions/safehtml/) function.

Using this example:  
[https://discourse.gohugo.io/t/group-data-from-csv-file/40159/3](https://discourse.gohugo.io/t/group-data-from-csv-file/40159/3)

```auto
{{/* Display the grouped data. */}}
<ul>
  {{ range $types }}
    <li>
      {{ . }}
      <ul>
        {{ range where $data "type" . }}
          <li>{{ .name | safeHTML }}</li>
        {{ end }}
      </ul>
    </li>
  {{ end }}
</ul>

```

---

_[View the full topic](https://discourse.gohugo.io/t/read-html-from-inside-a-getcsv/40329)._
