### Bug description

 I took a json string and escaped it, and it works fine as text embedded inside mermaid (tested using mermaid online https://mermaid.live/), but quarto fails to compile the mermaid graph as part of a slide presentation. 

```
graph TD
    A["{&quot;a&quot;:2,&nbsp;<br/>&nbsp;&nbsp;&nbsp;&quot;b&quot;:3,&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&quot;d&quot;:&quot;b&quot;}"] -->|jq| B(Go shopping)
    B --> C{Let me think}
```


graph TD
    A["{&quot;a&quot;:2,&nbsp;<br/>&nbsp;&nbsp;&nbsp;&quot;b&quot;:3,&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&quot;d&quot;:&quot;b&quot;}"] -->|jq| B(Go shopping)
    B --> C{Let me think}

<img width="224" alt="image" src="https://user-images.githubusercontent.com/68746303/201810969-15d7817b-6358-43d3-9a27-a2291f880267.png">

2022.07.2 Build 576

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
cscheid
2022-11-15T02:24:17Z
bayeslearner
bug needs-repro mermaid
v1.3
closed
No way to escape special characters in mermaid embedded in quarto docs. 
https://github.com/quarto-dev/quarto-cli/issues/3328