Hi i have a data scraped from a website and i want to clean its paragraph and i dont how can i remove multiple underscore and replace it with space or new line.
Here is the sample paragraph I scraped using cheerio.js
The future of mobile gameplay is War Games!_______________________________________ATTENTION ALL PLAYERS! We’d love to hear your feedback to help us improve the game. To leave feedback visit here.
Then I want this to be like this.
The future of mobile gameplay is War Games!
ATTENTION ALL PLAYERS! We’d love to hear your feedback to help us improve the game. To leave feedback visit here.