I have used @Html.ValidationSummary(false) which add UL, LI. In LI there is a style applied that is display none.
li style="display:none"
Now we are going to add a header Content-Security-Policy and do not want to allow unsafe-inline style. So how can style be replaced with class in validation list