Assuming you trust the data, pass the value through the safeHTML
function.
Using this example:
https://discourse.gohugo.io/t/group-data-from-csv-file/40159/3
{{/* Display the grouped data. */}}
<ul>
{{ range $types }}
<li>
{{ . }}
<ul>
{{ range where $data "type" . }}
<li>{{ .name | safeHTML }}</li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>