HTML Code Encoder | SJB -->

This website uses cookies to ensure you get the best experience. More info...


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 the 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