API Reference
Enum
RawHtmlHandling
Controls how raw HTML blocks (and HTML comments) are emitted during HTML rendering.
Inheritance
- Enum
- RawHtmlHandling
Inherited Methods
public override sealed Int32 CompareTo(Object target) #Returns:
Int32Inherited from Enum
Parameters
- target Object
public override sealed String ToString(String format, IFormatProvider provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format String
Values
public const RawHtmlHandling Sanitize #Sanitize raw HTML using a small allowlist. Disallowed tags are escaped and dangerous attributes are removed. Intended for pragmatic "HTML on but safe-ish" scenarios, not full HTML policy enforcement.
Value:
2