MermaidSecurityLevel
Namespace: Wisej.Web.Ext.Mermaid
Assembly: Wisej.Web.Ext.Mermaid (4.1.0.0)
Mermaid security levels (maps to Mermaid's securityLevel option).
- C#
- VB.NET
public enum MermaidSecurityLevel
Public Enum MermaidSecurityLevel
Example:
// Recommended default for server-rendered apps: strict sanitization.
mermaid.Config.SecurityLevel = Wisej.Web.Ext.Mermaid.MermaidSecurityLevel.Strict;
mermaid.ApplyOptions();
Fields
| Name | Description | Value |
|---|---|---|
| Antiscript | Disables script execution but keeps a more permissive configuration than Strict. | |
| Loose | Allows a broader set of features/content than Strict. | |
| Sandbox | Renders diagrams in a sandboxed iframe. | |
| Strict | Strict mode (default in Mermaid): sanitizes HTML and restricts potentially unsafe features. |
Used By
| Name | Description |
|---|---|
| Mermaid.SecurityLevel | Returns or sets the security level (maps to Mermaid's securityLevel). |
| MermaidConfiguration.SecurityLevel | Returns or sets the security level (maps to Mermaid's securityLevel). |