I\'m working on a feature which requires me to get the contents of a webpage, then check to see if certain text is present in that page. It\'s a backlink checking tool.
what about running both through a sanatizing filter (if you have php >5.2.0). I don't know that it will do anything, but it may.
http://www.phpro.org/tutorials/Filtering-Data-with-PHP.html#12