Skip to content

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

@mingyec

Description

@mingyec

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    PendingPending to be confirmed by user/author for some check/update/implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions