dotnet / dotnet/dotnet-api-docs

Incorrect output for XmlElement.InnerText property in example code

Open
#7,776 4 comments 0 reactions 0 assignees View on GitHub
area-System.Xml doc-bug help wanted Pri3
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

In https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmlelement.innertext the output in the comment of the example code is incorrect. (It appears that it's necessary to double-escape the & character.)

Existing code:
`// Text containing will have char(<) and char(>) escaped.`

Correct:
`// Text containing <markup/> will have char(<) and char(>) escaped.`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.