fixing url endings and adding stripslashes function to html output