Decoding special characters in Javascript -


How can I use Javascript, turn it on:

  Rutha Colulele Gulbankian N. XBA \ 42 3 \ XBA \ ESQ  

In this:

  Roula Coluhost Gulbankian N. S. 42 3ยบ ESQ  

Is there any way to do this? Because otherwise I have to predict all those special characters that can appear to change them.

Edit:

String (text) After the lower cover of X and it still does not decode the character is. Any other way knows?

You can use string () The exemption code (which will result in \ xBA ) will need to be minimized

Example code (check in Chrome Dev console):

  & Gt; String ('Rula cloost galvancan n. Xba \ 42 3 \ xBA ESQ'); & Lt; "Roula Coluhost Gulbancakian N. 42 42 Degree 3" 

Comments