Online Text Compressor in PHP (+ download PHP script)
On most sites, the HTML code is publicly available, which means that any webmaster can easily reproduce it by simply looking at the screen of the finished web page.
However, some optimizers consider the source HTML code of their web projects as a commercial secret or "know-how".
Save your unauthorized use of your intellectual work, this service will help, with which you can quickly encrypt the source HTML code through javascript.
Encodes html or any text in java-script. It is convenient to hide any information (for example, from rips or protection of e-mail from spam.)
Note: this page needs to be updated for version 3.0.
Usage
All statements, including function declarations , must be correctly terminated with semi-colons.
With the packing algorithm is forgiving of all forms of JavaScript with one exception. You must correctly terminate all JavaScript statements with semi-colons. This includes function declarations.
Here is an example of correct, semi-colon terminated JavaScript:
// sample code var input, output; // notice the semi-colon at the END of function declarations onload = function () {input = document.getElementById ("input"); Output = document.getElementById ("output"); ClearAll (true); };}; Function packScript () {output.value = pack (input.value); };}; Function clearAll (focus) {output.value = input.value = ""; // the "if" statement is NOT terminated with a semi-colon if (focus) {input.focus (); }};
Options
Base62 encode
Shrink variables
Features
Debug code (;;;)
Three semi-colons ( ;;; ) are treated like single-line comments.
For example, this code:
;;; Alert ("TEST!");
Would be removed by the packing program.
Platforms
Packed scripts should successfully unpack on all browsers that support JavaScript. Only basic JavaScript functionality is used to decode the packed script.
Some browsers may not support the packer itself. The web interface requires DOM support. Legacy browsers will display a disabled interface.
Comments
When commenting on, remember that the content and tone of your message can hurt the feelings of real people, show respect and tolerance to your interlocutors even if you do not share their opinion, your behavior in the conditions of freedom of expression and anonymity provided by the Internet, changes Not only virtual, but also the real world. All comments are hidden from the index, spam is controlled.