How to do email obfuscation in website? #7659
-
DescriptionHi! I am using Quarto to build my website. I see there is an option to tell quarto to use various ways of obfuscating email address in html documents. But for some reason it's not working. Since I couldn't find any example in quarto guides, I am not sure if maybe I am doing it wrong. Here is an example yaml of a page ---
title: My website
about:
template: trestles
links:
- text: Email
href: mailto:example@mail.com
email-obfuscation: javascript
--- the source code of the rendered page still shows <a href="mailto:example@mail.com" class="about-link" rel="" target="">
<span class="about-link-text">Email</span>
</a> How do I make the obfuscation work? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
I believe |
Beta Was this translation helpful? Give feedback.
-
It is a format option (https://quarto.org/docs/reference/formats/html.html#format-options), thus should be under the format. format:
html:
email-obfuscation: XXXX |
Beta Was this translation helpful? Give feedback.
-
Hi, To not start a new post, I'm having some trouble with this myself. I am using the pre-release version 1.4.525, so maybe that might be the issue. However, I have my email in two places:
On the "_quarto.yml" file, these are my format settings:
However, the page script doesn't obfuscate, and while hovering above the links, the email still shows. Any ideas? Thank you! |
Beta Was this translation helpful? Give feedback.
It is a format option (https://quarto.org/docs/reference/formats/html.html#format-options), thus should be under the format.