I have this jQuery code which replaces some HTML character codes with their equivalent:
$('.someText').html()
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>');
That works and all, but is there a way to combine those replace operations all into one regex to make the code more concise?
I'm still wrapping my head around regular expressions