Using data attributes instead of class names for better safety