I pull the content out of the RSS feed before using jquery to format and edit the rss returned string (s). I use replace to replace strings and characters as follows:
var spanish = $("#wod a").text(); var newspan = spanish.replace("=","-"); $("#wod a").text(newspan);
This works great. I am also trying to delete all text after a certain point. Like truncation, I would like to hide the entire text, starting with the word "Example".
In this particular RSS feed, an example of a word is in each feed. I would like to hide the "example" , and all the text follows that word. How can i do this?
javascript replace
Jchase11
source share