* E-mail obfuscation on names with apostrophes
@ 2015-07-06 18:53 John Muccigrosso
[not found] ` <6e3a605b-2440-4ee1-818d-814ebbd30129-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: John Muccigrosso @ 2015-07-06 18:53 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 1810 bytes --]
I've got an email address that looks something like this in markdown:
[Jim O'Hara](mailto:jim-1gzo9gducWfYtjvyW6yDsg@public.gmane.org)
If I leave the default javascript obfuscation method on, it will create a
malformed bit of script, where that single quote will screw things up
because it isn't escaped:
<p><script type="text/javascript">
<!--
h='ohara.org';a='@';n=
'jim';e=n+a+h;
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'" clas'+'s="em' + 'ail">'+'Jim
O'Hara'+'<\/'+'a'+'>');
// -->
</script><noscript>
Jim O'Hara (jim at ohara dot org)
</noscript></p>
I can work around it easily enough by specifying either none or references
for the obfuscation method. I tried escaping with a preceding backslash,
and using a curly apostrophe and &rsquot; The last gets me a
O’Hara
in the output. Finally I tried using a double backslash and that worked.
So is this a bug or just something that needs to be documented? (Or am I
missing something obvious.)
TIA.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6e3a605b-2440-4ee1-818d-814ebbd30129%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 7704 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: E-mail obfuscation on names with apostrophes
[not found] ` <6e3a605b-2440-4ee1-818d-814ebbd30129-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-07-06 20:28 ` John MacFarlane
0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2015-07-06 20:28 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
I'd call that a bug. Can you submit a report on the
tracker?
+++ John Muccigrosso [Jul 06 15 11:53 ]:
> I've got an email address that looks something like this in markdown:
> [Jim O'Hara](mailto:jim-1gzo9gducWfYtjvyW6yDsg@public.gmane.org)
> If I leave the default javascript obfuscation method on, it will create
> a malformed bit of script, where that single quote will screw things up
> because it isn't escaped:
> <p><script type="text/javascript">
> <!--
> h='ohara.org';a='@';n='
> jim';e=n+a+h;
> document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'" clas'+'s="em' +
> 'ail">'+'Jim O'Hara'+'<\/'+'a'+'>');
> // -->
> </script><noscript>Jim O'Har&
> #x61; (jim at oh
> 1;ra dot org)</nos
> cript></p>
> I can work around it easily enough by specifying either none or
> references for the obfuscation method. I tried escaping with a
> preceding backslash, and using a curly apostrophe and &rsquot; The last
> gets me a
> O’Hara
> in the output. Finally I tried using a double backslash and that
> worked.
> So is this a bug or just something that needs to be documented? (Or am
> I missing something obvious.)
> TIA.
>
> --
> You received this message because you are subscribed to the Google
> Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
> [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> [3]https://groups.google.com/d/msgid/pandoc-discuss/6e3a605b-2440-4ee1-
> 818d-814ebbd30129%40googlegroups.com.
> For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
> 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 3. https://groups.google.com/d/msgid/pandoc-discuss/6e3a605b-2440-4ee1-818d-814ebbd30129-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
> 4. https://groups.google.com/d/optout
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20150706202822.GA1684%40protagoras.berkeley.edu.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-06 20:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06 18:53 E-mail obfuscation on names with apostrophes John Muccigrosso
[not found] ` <6e3a605b-2440-4ee1-818d-814ebbd30129-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-07-06 20:28 ` John MacFarlane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).