Untitled string in Mermaid Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/properties/securityLevel
Level of trust for parsed diagram
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | config.schema.json* |
securityLevel Type
string
securityLevel Constraints
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"strict" | (**default**) HTML tags in the text are encoded and click functionality is disabled. |
"loose" | HTML tags in text are allowed and click functionality is enabled. |
"antiscript" | HTML tags in text are allowed (only script elements are removed), and click functionality is enabled. |
"sandbox" | With this security level, all rendering takes place in a sandboxed iframe. This prevent any JavaScript from running in the context. This may hinder interactive functionality of the diagram, like scripts, popups in the sequence diagram, or links to other tabs or targets, etc. |
securityLevel Default Value
The default value is:
json
"strict"