fast-xml-parser icon indicating copy to clipboard operation
fast-xml-parser copied to clipboard

How to insert a string containing single quotes into #text?

Open mingyec opened this issue 1 year ago • 1 comments

I am using the latest version of fxp. Normally, I can successfully change the #text value of a certain tag. However, when I try to insert a string containing single quotes or other special characters, the builder will escape them automatically, which is not what I want. Here is an example:

value['#text'] = `{{ fn('${generateKey(text)}') }}`;

output:

<div>{{ fn(&apos;content&apos;) }}</div>

mingyec avatar May 06 '23 08:05 mingyec

We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.

github-actions[bot] avatar May 06 '23 08:05 github-actions[bot]