Added error checking for StripHtml()