getTemplate check for valid html would fail for url's containing '/' or 'http://'