Hi guys, I have been using Hugo for a few weeks and have hit up against an issue that I’m currently unable to solve.
I’m wondering if there is a way to have Hugo not convert certain characters to html entities. I am trying to pass something like the following into a Hugo partial:
{{ partial "component/button" (dict "vclasses" "{ 'is-active': visible }") }}
The output looks something like this:
<button v-bind:class="{ &#39;is-active&#39;: visible }">...</button>
In which strings are converted. This is causing me problems in my Vue app as it is not able to parse the entities correctly (Vue is fine, Vue Storybook is actually what is throwing errors).
Does anyone know if there is a pipe or function I can use to ensure that Hugo does not convert the commas and the output looks something more like this:
<button v-bind:class="{ 'is-active': visible }">...</button>
Thanks in advance guys, really loving Hugo!