javascript - remove certain special characters from Text -


hey guys making project on phantomjs read source code of webpages , extract info need there. finished work 1 issue facing right now. have text have inside special characters need rid off. in case have :

avenue de citeaux 22<br><br>1348 louvain-la-neuve 

that "<><>" need rid off, using :

str.replace('<br><br>','') 

but not working ... ideas ?

try str.replace(/<br>/g, "") (regular expression global search flag enabled, replace occurences).


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -