Prevent anchor tags with href=javascript: from clearing placeholders