I am pulling content from an RSS feed, and then using jquery to format and edit the rss feed (string) that is returned. I am using
replace to replace strings and characters like so:
var spanish = $("#wod a").text(); var newspan = spanish.replace("=","-"); $("#wod a").text(newspan);
This works great. I am also trying to remove all text after a certain point. Similar to truncation, I would like to hide all text starting from the word "Example". In this particular RSS feed, the word example is in every feed. I would like to hide "example" and all text the follows that word. How would I accomplish this with jQuery?