That’s what I do most of the time (regex)… BUT … you need to be very careful of nested tags especially if you are searching for <span>s because that regex will pickup the first end tag not necessarily the correct one.
As Diap mentioned, his plugin actually parses the html to avoid that issue.
|