Skip to content

PatchPluginXmlTask wrongly escapes changeNotes tags inside CDATA block #1498

Closed
@missingdays

Description

@missingdays

What happened?

PatchPluginXmlTask wrongly escapes changeNotes tags inside CDATA block, see below

Relevant log output or stack trace

No response

Steps to reproduce

Have the following task

        withType<PatchPluginXmlTask> {
            changeNotes.set(releaseNotes)
        }

where releaseNotes are

val releaseNotes = """<![CDATA[
<a href="123">123</a>
]]>"""

In the resulting plugin.xml, change-notes section will contain the html with escaped values

  <change-notes>&lt;![CDATA[
&lt;a href="123"&gt;123&lt;/a&gt;
]]&gt;</change-notes>

However, according to docs, html inside CDATA block is valid in change-notes

https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html#idea-plugin__change-notes

Gradle IntelliJ Plugin version

1.16.0

Gradle version

8.3

Operating System

Windows

Link to build, i.e. failing GitHub Action job

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions