Shortcodes: Can you escape double quotes in parameters?

I was wondering if there is a way to escape double quotes if they are used within a shortcode parameter. If not it’s no big deal, I had encountered this today and quickly found another solution but figured it was worth asking.

Thanks,
Joe

{{< myShortcode myParam="Today I had a shortcode with a "quotation" inside the parameter" }}
  Inner Content
 {{< /myShortcode >}}

in most languages it’s enough to put a backslash before the character in question, this is the same for hugo as it uses go templates as layout engine. Should normally work

1 Like

Yes, you can espace quotes in shortcode params:

yParam="Today I had a shortcode with a \"quotation\"... 
1 Like

Ok great, thanks for the help!