Switch from strpos search from <script> tags to parse_url & filter_var approach
This PR is related to issue #30
Many browsers will accept JavaScript inline in certain properties of tags. This approach strips all tags from the path, but after filter_var is used to verify the URL src is valid and that the host and path components are valid. There may still be vectors, but this closes many of them.
This approach does require an absolute URL, it will not work with relative paths. I think that's a small use case, but it'll take a lot more processing to work with absolute and relative URLs.
filter_var was introduced into PHP7
Confirming @cogdog you're okay with me merging this?
Oh yes, Matt knows what he's doing. Can you send me an email? My ftp creds no longer work.
Late to the github pull but finally done.