Double Double Quotes

In a Go html template a row looks like this:

<li id="{{.menu_id}}" onclick={{.menu_id}}>

No matter if I add or omit double quotes.

On the browser inspector it looks like this:

onclick=""home""

It should look like this;

onclick="home()"

OR in in source

<li id="home" onclick=&#34;home&#34;>

How do I get rid of the extra double quotes?

I found the “solution” - sorry

onclick="content({{.menu_id}})"

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.