Any recommendations for sanitizing a URL string before inserting it into a HTML string template?

Any recommendations for sanitizing a URL string before inserting it into a HTML string template?
Was this page helpful?