dotnet / dotnet/dotnet-api-docs
Incorrect output for XmlElement.InnerText property in example code
Open
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
Assessment
This issue has not been assessed yet.