HTML Code Encoder

Encoding HTML code is important in many cases. We know that browsers may get the encoding wrong. Symbols might get mixed up or might show as unknown character. Encoding data converts potentially unsafe characters into their HTML-encoded equivalent. If you just paste 3 byte characters of some encoding into your HTML code without escaping them, things might get ugly. Its good habit to encode your HTML code. Below is a little tool to help you out. Copy your HTML code in the textbox, encode using encode button and click or focus the textbox to select encoded version of your code to copy. Its that simple!



Check out HTML Code Decoder.
Simple as this script is used for above encoding tool.
     function encode(val){
       val = val.replace(/&/g, '&');
       val = val.replace(/</g, '&lt;');
       val = val.replace(/>/g, '&gt;');
       val = val.replace(/"/g, '&quot;');
       return val;
     };
Check out HTML Code Decoder.

Check out HTML Code Decoder.

No comments:

Post a Comment

Grab The Button...

Grab the above button and add to your blog or website to get easy access to Virtual Species. Simply click the textbox, copy the code and paste where you want to see the button. That's it!