The library B<uHTML::uScramble> provides tags and functions to scramble the HTML output.
The scrambled HTML code get descrambled in the browser by a JavaScript function afterloading.
As robots, scanners, crawler, etc. (usually) donot execute JavaScript within the loaded B<HTML>
pages, it is a simple method to conceal sensitive data, e.g. email addresses, from them.
Requirements
The B<uHTML::uScramble> library requires only the main B<uHTML> library.
B< >
=head1 B<uHTML> tags provided by the uHTML::uScramble library
B< >
=head2 Scramble
=head3 Overview
The Scramble tag scrambles its content beforesending it to the browser. When selecting content forscrambling please take in account, that this content gets hidden from crawlers and can't get found by e.g. google.
Attributes
=head4 tag="name"
The attribute tag determines the name of the tag withwhich will replace Scramble. If missing it defaults to span.
=head3 Example
<Scramble tag="div">John@mail.com</Scramble>
=head2 ScrambleCode
=head3 Overview
The ScrambleCode tag inserts the actually used scramble code number. Is seldom used beyond debug purposes.
=head3 Example
<ScrambleCode>
B< >
=head1 Attribute variables and functions provided by the uHTML::Scramble library
B< >
=head2 $Scramble(text)
=head3 Overview
The Scramble function returns scrambles the content of an attribute.
=head3 Parameters
=head4 text
The parameter text defines the text to get obscured.
=head3 Example
<div title="$Scramble(John@mail.com)"> ... </div>
=head2 $ScrambleCode(B<>)
=head3 Overview
The ScrambleCode function returns the actually used scramble code number. Is seldom used beyond debug purposes.
=head3 Example
<Scramble title="$ScrambleCode"> ... </Scramble>
Keyboard Shortcuts
Global
s
Focus search bar
?
Bring up this help dialog
GitHub
gp
Go to pull requests
gi
go to github issues (only if github is preferred repository)