Skip to content

Instantly share code, notes, and snippets.

@efazati
Created January 4, 2013 10:47
Show Gist options
  • Save efazati/4451598 to your computer and use it in GitHub Desktop.
Save efazati/4451598 to your computer and use it in GitHub Desktop.
convert English number to Persian
$("body td").each(function(){
$(this).html(
$(this).html().replace(/\d/g, function(v) {
return String.fromCharCode(v.charCodeAt(0) + 0x06C0);
})
);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment