added parameter and anchor handling to html.process-url