graphviz_escape_string
graphviz_escape_string(input) ⇒ string
Escapes special characters in a string for use in a GraphViz label.
This function handles the most common escaping requirements for standard string labels (i.e., label="..."). It ensures that literal backslashes, double quotes, and newlines in the input string are correctly represented in the final DOT language output.
Kind: global function
Returns: string - The escaped string, safe to be used within double quotes in a .dot file.
See: https://graphviz.org/docs/attr-types/escString/
| Param | Type | Description |
|---|---|---|
| input | string | The raw string to be escaped. |