Skip to content

Commit

Permalink
Recognize � in the input and replace it with \uFFFD.
Browse files Browse the repository at this point in the history
  • Loading branch information
Knagis committed Jun 25, 2015
1 parent 7a8c040 commit 472c49c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CommonMark/Parser/InlineMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -686,17 +686,17 @@ private static string ParseEntity(Subject subj)
entity = EntityDecoder.DecodeEntity(entity);
if (entity != null)
return entity;

return subj.Buffer.Substring(origPos, match);
}
else if (numericEntity > 0)
{
entity = EntityDecoder.DecodeEntity(numericEntity);
if (entity != null)
return entity;

return "\uFFFD";
}

return subj.Buffer.Substring(origPos, match);
return "\uFFFD";
}
else
{
Expand Down

0 comments on commit 472c49c

Please sign in to comment.