I am getting non breaking space as a text when scraping website span

Viewed 32

I scrapeed a website and got essential text but it's also giving non breaking space with the text anyway I can remove those nbsp? Here is the generated output by console :-

Action / Adventure / Harem / Post-apocalyptic World
1 Answers

Solved it by using:

var r_tag = tags.replace(/ /g,'');

I was using &nbsp instead of /&nbsp

Related