NAME
VERSION
Version 0.95
DESCRIPTION
The library uHTML::uScramble provides tags and functions to scramble the HTML output. The scrambled HTML code get descrambled in the browser by a JavaScript function after loading. As robots, scanners, crawler, etc. (usually) do not execute JavaScript within the loaded HTML pages, it is a simple method to conceal sensitive data, e.g. email addresses, from them.
Requirements
The uHTML::uScramble library requires only the main uHTML library.
uHTML tags provided by the uHTML::uScramble library
Scramble
Overview
The Scramble tag scrambles its content before sending it to the browser. When selecting content for scrambling please take in account, that this content gets hidden from crawlers and can't get found by e.g. google.
Attributes
tag="name"
The attribute tag determines the name of the tag with which will replace Scramble. If missing it defaults to span.
Example
<Scramble tag="div">John@mail.com</Scramble>
ScrambleCode
Overview
The ScrambleCode tag inserts the actually used scramble code number. Is seldom used beyond debug purposes.
Example
<ScrambleCode>
Attribute variables and functions provided by the uHTML::Scramble library
$Scramble(text)
Overview
The Scramble function returns scrambles the content of an attribute.
Parameters
text
The parameter text defines the text to get obscured.
Example
<div title="$Scramble(John@mail.com)"> ... </div>
$ScrambleCode()
Overview
The ScrambleCode function returns the actually used scramble code number. Is seldom used beyond debug purposes.
Example
<Scramble title="$ScrambleCode"> ... </Scramble>