Selaa lähdekoodia

2006-02-22 Cesar Lopez Nataren <[email protected]>

	* HtmlTextWriter.cs: Added method WriteEncodedText for the .NET 2.0 profile.

svn path=/trunk/mcs/; revision=57185
César Natarén 20 vuotta sitten
vanhempi
sitoutus
c5ee436d00

+ 4 - 0
mcs/class/System.Web/System.Web.UI/ChangeLog

@@ -1,3 +1,7 @@
+2006-02-22  Cesar Lopez Nataren  <[email protected]>
+
+	* HtmlTextWriter.cs: Added method WriteEncodedText for the .NET 2.0 profile.
+
 2006-02-14 Gonzalo Paniagua Javier <[email protected]>
 
 	* WebHandlerParser.cs:

+ 5 - 0
mcs/class/System.Web/System.Web.UI/HtmlTextWriter.cs

@@ -1127,6 +1127,11 @@ namespace System.Web.UI {
 			WriteBeginTag (br);
 			Write (SelfClosingTagEnd);
 		}
+
+		public virtual void WriteEncodedText (string text)
+		{
+			Write (HttpUtility.HtmlEncode (text));
+		}
 #endif
 	}
 }