Thinking on it further though I realised that some of the content I need to parse contains HTML. What I really need to do is just convert ampersands and instances of > and < that aren't part of tags.
I think, in this case, that using Replace is going to suffice.
Thanks for the help
<honk>*:O)</honk>
Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
I actually think your going to need to use a regular expression or three. Replace isn't going to be smart enough to know whether your lt's or gt's are part of tags or just hanging out in the middle of a paragraph of text all by themselves.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.