Hi!
I was looking for a way to place HTML within a variable.
E.g.:
title = "Thisisaverylongword & whichneedstobreaksomewhere".
Right now Hugo is rendering "&" instead of the &-sign.
Is there a workaround?
Thanks a lot!
Hi!
I was looking for a way to place HTML within a variable.
E.g.:
title = "Thisisaverylongword & whichneedstobreaksomewhere".
Right now Hugo is rendering "&" instead of the &-sign.
Is there a workaround?
Thanks a lot!
Inside the template you could pipe your variable to the html template function. E.g.
{{ .Params.title | html }}
Out of curiosity, is there a difference between html and safeHTML?
Thanks a lot! 