Added support for multiple links, implemented link sanitization