Corey Alix
Corey Alix

Reputation: 2750

How to escape { and } in the Svelte REPL?

I am using the Svelte REPL and would like to render a code block:

<pre>
function () &#123;
// test
&#125;
</pre>

Is there a more convenient way?

Upvotes: 0

Views: 222

Answers (1)

grohjy
grohjy

Reputation: 2149

You can use

{@html `<pre>function (){//test}</pre>`}

Upvotes: 2

Related Questions