This question already has an answer here:
- Go template.ExecuteTemplate include html 7 answers
I have a template in golang where I have a string that looks something like this:
<some_html> {{ .SomeOtherHTML }} </some_html>
I'm expecting an output to be something like this:
<some_html> <the_other_html/> </some_html>
But instead I'm seeing something like this:
<some_html> <the_other_html/< </some_html>
I'm also trying to insert some JSON but golang is escaping characters and adding things like "
in places they shouldn't be.
How do I insert into an HTML template in golang without this happening?