I have some variable I use for SEO tags wich contains 'character (ascii 39).
Whatever pipe (htmlUnescape, safeHTML and al.) i try, even using \u0027, the ' is always transformed to '.
Is it me forgettting some obvious thing ?
Is it by design ? If so i think we should have a way to keep the SEO tag free of ascii codes because it renders the brute codes when processed by SEO tools/functions.
@alexandros thanks a lot for the response.
But your tip doesn’t change things.
The browser display is OK, FB seems ok but I had problem with other site/tools (but i just F&@#% can’t found wich one at the moment) who doesn’t do the translation.
Anyway thanks, seems the legit behaviour and good enough.
I guess if it works with greek alphabet it should work with roman one
Basically the template system that Hugo uses is context aware and doesn’t trust stuff that is parametrized. That’s why the safe functions exist, to tell the template explicitly “you can trust this”. However, I found that in some contexts even the result of the safe functions is filtered. I don’t think there’s a way to bypass this. However if you hardcode the attribute it is rendered as it was written (because it is trusted).