RemoveReason.cs 932 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. namespace Ganss.Xss;
  2. /// <summary>
  3. /// List of reasons why something was identified to get removed from the HTML.
  4. /// </summary>
  5. public enum RemoveReason
  6. {
  7. /// <summary>
  8. /// Tag is not allowed.
  9. /// </summary>
  10. NotAllowedTag,
  11. /// <summary>
  12. /// Attribute is not allowed.
  13. /// </summary>
  14. NotAllowedAttribute,
  15. /// <summary>
  16. /// Style is not allowed.
  17. /// </summary>
  18. NotAllowedStyle,
  19. /// <summary>
  20. /// Value is a non-allowed or harmful URL.
  21. /// </summary>
  22. NotAllowedUrlValue,
  23. /// <summary>
  24. /// Value is not allowed or harmful.
  25. /// </summary>
  26. NotAllowedValue,
  27. /// <summary>
  28. /// CSS class is not allowed.
  29. /// </summary>
  30. NotAllowedCssClass,
  31. /// <summary>
  32. /// The class attribute is empty.
  33. /// </summary>
  34. ClassAttributeEmpty,
  35. /// <summary>
  36. /// The style attribute is empty.
  37. /// </summary>
  38. StyleAttributeEmpty,
  39. }