You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Apostrophe symbol in SQL Server column description is scaffolded as ' #34714
XML documentation is, well, XML, and ' is a valid representation of the character in XML. EF must escape the string it reads from the description; for example, if your column description contains a < character, it must escaped or it will result in invalid XML. There may be a way to instruct the escaping to not escape when it's not strictly necessary (like in the apostrophe case), I'm not sure.
XML documentation is, well, XML, and ' is a valid representation of the character in XML. EF must escape the string it reads from the description; for example, if your column description contains a < character, it must escaped or it will result in invalid XML. There may be a way to instruct the escaping to not escape when it's not strictly necessary (like in the apostrophe case), I'm not sure.
Hi thank you well yes some symbols like ' are not necessary to be escaped in Visual Studio because they work even though not escaped. True that for >symbol the escaping is required because that would be malformed XML. @ErikEJ it looks correctly but only on mouseover and not in the generated text.
So the overall issue is actually something like: Symbols which do not form malformed XML documentation in Visual Studio do not need to be escaped in generated XML documentation
It's more like a nice to have feature so that the generated text is more human readable for symbols which do not need to be escaped as @roji states.
Current:
Proposed:
Activity
roji commentedon Sep 19, 2024
XML documentation is, well, XML, and
'is a valid representation of the character in XML. EF must escape the string it reads from the description; for example, if your column description contains a<character, it must escaped or it will result in invalid XML. There may be a way to instruct the escaping to not escape when it's not strictly necessary (like in the apostrophe case), I'm not sure.ErikEJ commentedon Sep 19, 2024
@janseris Does the description not look correct in your editor / intellisense?
janseris commentedon Sep 19, 2024
Hi thank you well yes some symbols like
'are not necessary to be escaped in Visual Studio because they work even though not escaped. True that for>symbol the escaping is required because that would be malformed XML.@ErikEJ it looks correctly but only on mouseover and not in the generated text.
So the overall issue is actually something like:
Symbols which do not form malformed XML documentation in Visual Studio do not need to be escaped in generated XML documentation
ErikEJ commentedon Sep 19, 2024
Sounds like a non-issue to me.
janseris commentedon Sep 19, 2024
It's more like a nice to have feature so that the generated text is more human readable for symbols which do not need to be escaped as @roji states.


Current:
Proposed:
roji commentedon Sep 19, 2024
Putting on the backlog and assigning to @cincuranet (scaffolding).
Don't escape quotes and apostrophes in scaffolded XML comments (dotne…