Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function unicodeToChar(text) {
- return text.replace(/\\u[\dA-F]{4}/gi,
- function (match) {
- return String.fromCharCode(parseInt(match.replace(/\\u/g, ''), 16));
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement