Hi all,
How can I process this query in basex:

let $x := doc(<a>main(){int i = 0;}</a>)
return replace value of node $x with ""


There are text contents that contain, for example, c code with curly braces which I do not want to be interpreted as embeded expressions.

As a workaround I could escape the curly braces, But, is there a better way/option to suppress interpreting text contents that look like embedded expressions?

Thanks!