I have a xml file which has an En Dash and Em Dash characters in it as part of element text. They are getting converted to UTF-8 codes as following.
<TextValue>This is an En Dash: \xE2\x80\x93 This is an Em Dash: \xE2\x80\x94.</TextValue>
I would like to address those UTF-8 hex codes using JavaScript and replace them with any free text I want.
Could anyone suggest approaches to do it? I tried to use RegEx but was unable to parse those codes. I could address any other text using RegEx though.
Thank you.

\xE2notation was a good XML thing. The proper XML encoding for these chars (if not raw bytes) would be–and—respectively. But if you're stuck with that XML I guess you'll need some custom parsing/decoding.