Today I’m a little tired and just can’t think how to do it simply. Basically, I have something similar to the following, and I want to cut out the html tags, but leave their contents:
<a href="#">some content</a> and more <a href="#"> and more content</a>
and actually return the following:
some content and more and more content
Any help, as always, is greatly appreciated!
EDIT: Thank you very much for the answers - there I followed the path of regular expression to complicate the situation! I actually finished using .text (), as suggested below, I used it before, but just for installation, I never retrieved it, and it worked better when a rather large object was returned! Thank you so much for all the suggestions :). I will answer the answer in 6 minutes.
Jamie source
share