Skip to content

Please support CDATA blocks #10

@drosenbauer

Description

@drosenbauer

While XMLText is great, sometimes you want to force a CDATA block. For example, I work with XML where one of the tags can contain Java code, which contains < characters. You either have to escape all of them (ugly, hard to maintain) or enclose it in a CDATA.

Perhaps even allow CDATA to be variable, such as:

@XMLText(
  {
    // CDATA will be emitted when this expression resolves to true for the given text
    cdata: (text) => text.length > 80
  }
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions