Link From To
test http://www.example.com/-/?/www.howtocreate.co.uk/jslibs/ Unchanged
test http://www.example.com/-/?url=http://www.howtocreate.co.uk/jslibs/ http://www.howtocreate.co.uk/jslibs/
test http://www.example.com/-/?url=http%3a/%2Fwww.howtocreate.co.uk/jslibs/ http://www.howtocreate.co.uk/jslibs/
test http://www.example.com/-/?url=https://www.howtocreate.co.uk/jslibs/ https://www.howtocreate.co.uk/jslibs/
test http://www.example.com/-/?url=http://www.howtocreate.co.uk/jslibs/%3f6&blah=sd http://www.howtocreate.co.uk/jslibs/?6
test http://www.example.com/-/?url=https://www.howtocreate.co.uk/jslibs/&blah=sd#foio https://www.howtocreate.co.uk/jslibs/
test http://www.example.com/-/?url=https://www.howtocreate.co.uk/jslibs/#foio https://www.howtocreate.co.uk/jslibs/
test javascript:if(foo){window.open('blah','bsaa','asdasdasda');} currentPath/blah
test # Unchanged
test # - onclick="if(foo){window.openit('blah','bsaa','asdasdasda');}" Unchanged
test javascript:foo() - onclick="if(foo){window.open('blah','bsaa','asdasdasda');}" currentPath/blah
test javascript:window.open('foo') - onclick="if(foo){window.open('blah','bsaa','asdasdasda');}" currentPath/foo
test # - onclick="if(foo){window.open('http:/\/www.example.com\/foobar?exce=ono&woot=gh','bsaa','asdasdasda');}" http://www.example.com/foobar?exce=ono&woot=gh
test # - onclick='if(foo){window.open ( "blah" ,"bsaa","asdasdasda");}' currentPath/blah
test #foo - onclick="if(foo){window.open('blah','bsaa','asdasdasda');}" Unchanged