Skip to content

Commit

Permalink
[Bind] Escape xml characters in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thefiddler committed May 31, 2014
1 parent 63ef5dd commit 0692617
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Bind/CSharpSpecWriter.cs
Expand Up @@ -502,7 +502,10 @@ void WriteConstants(BindStreamWriter sw, IEnumerable<Constant> constants)
if (!Settings.IsEnabled(Settings.Legacy.NoDocumentation))
{
sw.WriteLine("/// <summary>");
sw.WriteLine("/// Original was " + Settings.ConstantPrefix + c.OriginalName + " = " + c.Value);
sw.WriteLine("/// Original was {0}{1} = {2}",
Settings.ConstantPrefix,
c.OriginalName,
c.Value.Replace("<", "&lt;").Replace(">", "&gt;"));
sw.WriteLine("/// </summary>");
}

Expand Down

0 comments on commit 0692617

Please sign in to comment.