We talked about HTML encoding and create a handy tool on HTML Code Encoder post. We talked about why encoding is important and why we can't ignore that. However, decoded HTML code is also needed in many cases. Specially, we need to decode our old code to update or modify to make it more user friendly. If we want to update our cool project on blog or site, we need a decoder for encoded code.
Check out HTML Code Encoder.
Simple as this script is used for the above decoding tool.
12345678function
decode(encodedStr) {
var
TxtAra = document.createElement(
'TxtAra'
);
TxtAra.innerHTML = encodedStr;
return
TxtAra.value;
}
$(
'YourButton'
).click(
function
() {
$(
'YourTextarea'
).val(decode($(
'YourTextarea'
).val()));
});
Check out HTML Code Encoder.
No comments:
Post a Comment