Removing hardcoded links and escaping URLs