I am getting strings from an API endpoint like: Senol Güneş Spor Kompleksi. ş is a Turkish letter, ş. I want my string to be Senol Güneş  Spor Kompleksi. I tried JSON.Parse and utf8 package without success. Can I parse this string to a plain string?
            Asked
            
        
        
            Active
            
        
            Viewed 38 times
        
    0
            
            
         
    
    
        nope
        
- 751
- 2
- 12
- 29
- 
                    Possible duplicate of [Unescape HTML entities in Javascript?](https://stackoverflow.com/questions/1912501/unescape-html-entities-in-javascript) – ASDFGerte May 22 '18 at 21:31
- 
                    @ASDFGerte a possible solution to that, decode-html package did not work either. – nope May 22 '18 at 21:34
1 Answers
0
            
            
        I solved the problem by using html-entities package.
const Entities = require('html-entities').AllHtmlEntities;
const entities = new Entities();
const decodedString = entities.decode(originalString);
 
    
    
        nope
        
- 751
- 2
- 12
- 29