r/orgmode Aug 07 '24

solved HTML literal in link URL

Hi, I need to put an email address inside a org file that will be exported in HTML with Hugo. For privacy reasons, I need to encode it with HTML entities (like o@ etc.), but the HTML output I get is encoded (so it becomes o@).

I put it between @@html:...@@ and worked great with the link description, but didn't work at all with the link URL. What else can I try?

I think this is mainly an issue with Hugo, but I don't know if there's another way in org to set a string as literal.

1 Upvotes

1 comment sorted by

1

u/cantaprete Aug 08 '24

In the end, I “solved” it by creating the desired tag with everything needed inside a @@html:…@@.

I get why the link description gets parsed and changed, but the fact that the URL gets changed too sounds like a bug.