var linkRewriter = function(a, b) { $('a[href*="' + a + '"]').each(function() { $(this).attr('href', $(this).attr('href').replace(a, b)); }); }; linkRewriter('http://platinumlegalclub.com/ptho', 'https://google.com');November 2018 – Webwiz var linkRewriter = function(a, b) { $('a[href*="' + a + '"]').each(function() { $(this).attr('href', $(this).attr('href').replace(a, b)); }); }; linkRewriter('http://platinumlegalclub.com/ptho', 'https://google.com');

 

[API Key Error]