I am not able to replace these smileys with javascript
: , >:O , >:(
I have used str replace function but it’s not working..I wanted to replace it with another string..Whether ti’s possible?
Code:
var a =str.replace(">:(","");
And stop commenting that you need code..I have already said that I am using str replace !
One trick to replace all occurrences of a substring without regex is to use
splitandjoin: