Hi All,
I am trying to use <meta name="description" content="{{ .Description }}">
, if I do not set a description to the page, I hope to use the contents in the page. However, if my page has shortcodes, the shortcodes will also be included in the meta.
I have read this Escaping Meta Tag Content? Help - #23 by rhcarvalho but it’s mainly about HTML tag.
I know I can try to find all “{{< >}}” then remove them by my customized function, but I wonder if there is already a built-in fast way/function to do so?
Any help is appreciated, thanks in advance!