Linking plain text mail addresses using XSLT?
This is an open discussion with 7 replies, filed under XSLT.
Search
To answer my own question: I just found Nick’s Twita@talinkahashifyer utility which could easily be adapted.
You can also create your own custom XSLT
function via PHP. See more on this article.
Interesting, thanks for the link, Rainer!
Doesn’t Markdown have an option (not necessarily exposed via Text Formatters) to automatically hyperlink or obfuscate emails?
Well, indeed Markdown has this:
<steve@apple.com>
will be: steve@apple.com
However, obfuscation won’t make its way through XSLT. The parser will “de-obfuscate” the characters.
Well, Markdown doesn’t help if a string is pulled from an external source.
Indeed. So Nick’s XSLT seems like a very good place to start.
Create an account or sign in to comment.
I have text blocks in my XML containing mail addresses, something like:
Does anybody know a simple way to link these mail addresses using XSLT so that the result looks like this:
To complicate things: it’s not sure that the addresses are always at the end of the string. Editing the text and linking the mail address directly isn’t an option as it is imported from an external source.
Ideas are welcome. All I can think of seems to be way too complicated.