text

Replace node text

{
  content: "Hello John!"
}
<h1 text:="content">Hello World!</h1>

Result:

<h1>Hello John</h1>

Use template to interpolate text

{
  name: "John"
}
<h1>
  Hello <template text:="name"></template>, how are you?
</h1>

Result:

<h1>
  Hello John, how are you?
</h1>

HTML strings will be escaped

{
  raw: "var x = y > 4 && z / 3 == 2 ? 1 : 2"
}
<code text:="raw"></code>

Result:

<code>var x = y &gt; 4 &amp;&amp; z / 3 == 2 ? 1 : 2</code>