I am having trouble escaping HTML using shortcode associated with a textaera. An example (for the shortcode) is given below:
<textarea>{{printf "<" | safeHTML}}
</textarea>
{{printf "<" | safeHTML}}
However, the “<” in the textarea changed to “<” in the rendered html. Interestingly, the “<” not in the textarea behaved as expected.
<textarea><
</textarea>
<
I wonder if there is a way not to change “<” to “<”. Any suggestion is appreciated.
I am using hugo version v0.80.0. I am completely new to this board. Let me know if I can provide any other information. Thanks a lot.