Made LinkSanitiser class to sanitise links.

Made a public static method in a class that sanitises links.