Rosetta Code:Village Pump/Email protection in code: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page with "{{Vptopic |topic=Email protection in code |summary=Sometimes parts of the source code is replaced with "[email protected]". }} With 'sometimes' I mean the Forth language and t...")
 
(added a comment concerning CloudFlare)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Vptopic
{{Vptopic
|topic=Email protection in code
|topic=Email protection in code
|summary=Sometimes parts of the source code is replaced with "[email protected]".
|summary=Sometimes parts of the source code is replaced with "email protected".
}}
}}
With 'sometimes' I mean the Forth language and the standardized words <code>R&#64; 2R&#64; C&#64; 2&#64; F&#64; SF&#64; DF&#64;</code>, but in principle it is possible, and not very unlikely, to define Forth words of the form something&#64;, or even something&#64;somethingelse.
With 'sometimes' I mean the Forth language and the standardized words <code>R&#64; 2R&#64; C&#64; 2&#64; F&#64; SF&#64; DF&#64;</code>, but in principle it is possible, and not very unlikely, to define Forth words of the form something&#64;, or even something&#64;somethingelse.
Line 7: Line 7:
It ''is'' possible to replace a triggering @ with &amp;#64; and most browsers should display the code alright, and even copy-paste should work, but it's an inconvenience to mangle the code like that, and it doesn't feel right.
It ''is'' possible to replace a triggering @ with &amp;#64; and most browsers should display the code alright, and even copy-paste should work, but it's an inconvenience to mangle the code like that, and it doesn't feel right.
--[[User:Tommy|Tommy]] 12:24, 16 July 2019 (UTC)
--[[User:Tommy|Tommy]] 12:24, 16 July 2019 (UTC)

: I had the same problem with ASCII-art (as included within the &nbsp; <big> <nowiki> <pre> </nowiki> </big> &nbsp; <small>and</small> &nbsp; <big> <nowiki> </pre> </nowiki> </big> &nbsp; HTML language tags, &nbsp; where the art had, among other characters, random characters &nbsp; (such as the &nbsp; <big> '''@''' </big> &nbsp; character) &nbsp; used for dithering. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 13:59, 16 July 2019 (UTC)

:: I think I remember that (the above) was due to something that Cloudflare was doing, but I'm not sure, it was a while ago. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 16:42, 16 July 2019 (UTC)

Latest revision as of 16:42, 16 July 2019

Email protection in code
This is a particular discussion thread among many which consider Rosetta Code.

Summary

Sometimes parts of the source code is replaced with "email protected".

Discussion

With 'sometimes' I mean the Forth language and the standardized words R@ 2R@ C@ 2@ F@ SF@ DF@, but in principle it is possible, and not very unlikely, to define Forth words of the form something@, or even something@somethingelse. I suppose there is a good reason for hiding email addresses, even if those who edit the pages put them there by themselves, but would it be possible to exclude <lang>...</lang>-sections from this protection. It is possible to replace a triggering @ with &#64; and most browsers should display the code alright, and even copy-paste should work, but it's an inconvenience to mangle the code like that, and it doesn't feel right. --Tommy 12:24, 16 July 2019 (UTC)

I had the same problem with ASCII-art (as included within the   <pre>   and   </pre>   HTML language tags,   where the art had, among other characters, random characters   (such as the   @   character)   used for dithering.     -- Gerard Schildberger (talk) 13:59, 16 July 2019 (UTC)
I think I remember that (the above) was due to something that Cloudflare was doing, but I'm not sure, it was a while ago.     -- Gerard Schildberger (talk) 16:42, 16 July 2019 (UTC)