Enum ContentFormat
- Namespace
- Quilt4Net.Toolkit.Features.FeatureToggle
- Assembly
- Quilt4Net.Toolkit.dll
How a content value should be rendered. Stored on the server's ContentEntity as the
BSON string representation so future additions don't break old documents.
public enum ContentFormat
Fields
Html = 1Sanitised HTML. Renderers pass through after allow-list checks.
Markdown = 2CommonMark Markdown. Renderers run the value through Markdig with raw-HTML disabled — safer than Html, more expressive than String. Recommended for prose-bearing snippets.
String = 0Plain text. Renderers HTML-encode and preserve newlines.