Skip to content

In XML documentation, some XML entities disappear #2662

Open
@hhmmjjnn

Description

@hhmmjjnn

Code:

internal class C
{
    /// <summary>
    /// Foo&lt;br&gt;bar.
    /// </summary>
    /// <remarks>
    /// Spam<c>&lt;br&gt;</c>baz.
    /// </remarks>

    public const int foo = 42;
}

VS:

Image

VSCodium:

Image

The expected behaviour (VS) is that &lt; is rendered as < and &gt as >.

The observed behaviour (VSCodium) is that &lt; and &gt disappear, as well as everything between them.

May or may not be related to another report:

Nota bene:

internal class C
{
    /// <summary>
    /// These work:
    /// <list type="bullet">
    /// <item><description>Unbalanced: foo&gt;bar</description></item>
    /// <item><description>Unbalanced: foo&lt;bar</description></item>
    /// <item><description>Other entities: foo&amp;bar</description></item>
    /// </list>
    /// </summary>
    /// <remarks>
    /// This, doesn't:
    /// <list type="bullet">
    /// <item><description>Partially &lt;&lt;foo&gt; balanced.</description></item>
    /// </list>
    /// </remarks>
    public const int foo = 42;
}

VS:

Image

VSCodium:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions