jlajax Posted August 10, 2013 Share Posted August 10, 2013 Greetings while goofing around with script 5.4 I had an interesting result no errors were reported. I typed in an incomplete URL <a href="http://www.somedomain.com and the results were interesting I got a link to no where in the response. The sentence outside of the php code is a proper html paragraph and worked fine until I got this. I believe it worked as it should for my other tests. Comments? Link to comment Share on other sites More sharing options...
Larry Posted August 13, 2013 Share Posted August 13, 2013 Good test! The strip_tags() function requires syntactically valid HTML (or whatever) to work. With an opening A that's not closed, strip_tags() can't see the HTML in order to strip it out. If that's a concern for you with something like this, you could apply strip_tags() and then htmlentities() as an extra precaution. Link to comment Share on other sites More sharing options...
Recommended Posts