The HTML_Crypt provides methods to encrypt text, which can be later be decrypted using JavaScript on the client side.
This is very useful to prevent spam robots collecting email addresses from your site, included is a method to add mailto links to the text being generated.
Пример 42-1. A basic example to encrypt an email address
|
The "encryption" function is basically works like ROT13, with the difference that the $offset setting replaces the 13. It is also limited to ASCII characters between 32 and 127 (included). Other characters will not be encrypted.
Пред. | Начало | След. |
HTML | Уровень выше | HTML_Form |
HIVE: All information for read only. Please respect copyright! |