Only detect placeholder text if class is present