public
Created

Decode quoted-printable-encoded text

  • Download Gist
decodeQuotedPrintable.js
JavaScript
1 2 3 4 5 6 7 8 9
function decodeQuotedPrintable(input){
return input.replace(/=(\n|[0-F]{2})/g, function(match, charCode){
if (charCode === '\n') {
return '';
} else {
return String.fromCharCode(parseInt(charCode, 16));
}
});
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.