[Modify] Edit it

This commit is contained in:
sta 2019-01-08 21:41:56 +09:00
parent 323c66a634
commit e75bbac467

View File

@ -280,10 +280,15 @@ namespace WebSocketSharp.Net
return buff.ToString (); return buff.ToString ();
} }
/// <summary>
/// Initializes the _entities field.
/// </summary>
/// <remarks>
/// This method builds a dictionary of HTML character entity references.
/// This dictionary comes from the HTML 4.01 W3C recommendation.
/// </remarks>
private static void initEntities () private static void initEntities ()
{ {
// Build the dictionary of HTML entity references.
// This list comes from the HTML 4.01 W3C recommendation.
_entities = new Dictionary<string, char> (); _entities = new Dictionary<string, char> ();
_entities.Add ("nbsp", '\u00A0'); _entities.Add ("nbsp", '\u00A0');
_entities.Add ("iexcl", '\u00A1'); _entities.Add ("iexcl", '\u00A1');