Hi folks, got a [b]very
All I wan’t is to do a bog standard preg_replace on a subject string, but for it not to effect any of the actual html tags that might be in there. I want it to be able to effect the contents of tags (like the text inside of a paragraph element) and text on the outside of an element, but just not actually effect the tags themselves (or their attributes).
Any ideas folks? I’ve been trying for two days solid now and have run out of ideas. Oh and using the DOM API isn’t an option. Whilst it would be the ideal solution to such a simple task, PHP5 doesn’t have one yet (so much for OOP eh).