* SecurityParser.cs : fix in sync with r89135 anr r89136.
svn path=/trunk/mcs/; revision=89139
+2007-11-07 Atsushi Enomoto <atsushi@ximian.com>
+
+ * SecurityParser.cs : fix in sync with r89135 anr r89136.
+
2004-09-17 Sebastien Pouliot <sebastien@ximian.com>
* MiniParser.cs: In synch with corlib version. Removed all level 4
// attributes
int n = attrs.Length;
for (int i=0; i < n; i++)
- current.AddAttribute (attrs.GetName (i), attrs.GetValue (i));
+ current.AddAttribute (attrs.GetName (i), SecurityElement.Escape (attrs.GetValue (i)));
}
public void OnEndElement (string name)
public void OnChars (string ch)
{
- current.Text = ch;
+ current.Text = SecurityElement.Escape (ch);
}
public void OnEndParsing (MiniParser parser) {}