Javascript in blogpost, but not on all sites at the same time?

From what i see this comes from the golang http/template pkg , a character like " gets escaped. Is there a way (with changing hugo’s source, to change the behavior to not escape javascript double quotes?

problem i have is all solutions here mentioned are ok if you need the javascript many times on different pages. What if you have 2-3 different javascripts per blogpost (content is dynamically generated) in this way the only solution is to prevent hugo from escaping those chars.

i am looking for a option (without having to go away from standard hugo source). something like

{{ do-not-escape }}
my javascript code that should not get escaped…
{{ end-do-not-escape }}

but i think it is not possible for now without changing hugo’s source because of the use from html/template. Am i wrong with this?

another way (because the content is automatically generated) is to create for each post in parallel a partial site (which is a huge waste… but if thats the only way… ok)