| |||||
Server.HtmlDecode MethodSystem.Web Namespace HttpServerUtility Class Decodes a string that has been encoded to eliminate invalid HTML characters. Overload List1. Decodes an HTML-encoded string and returns the decoded string. 2. Decodes an HTML-encoded string and sends the resulting output to a TextWriter output stream. ExampleThe following example decodes a string that has been HTML-encoded for transmission over HTTP. It decodes the supplied string named EncodedString which contains the text "This is a <Test String>.", and copies it into the string named DecodedString as "This is a <Test String>."
[ VB ] Dim EncodedString As String = "This is a <Test String>." Dim writer As New StringWriter Server.HtmlDecode ( EncodedString, writer ) Dim DecodedString As String = writer.ToString ( ) [ C# ] String EncodedString = "This is a <Test String>."; StringWriter writer = new StringWriter ( ); Server.HtmlDecode ( EncodedString, writer ); String DecodedString = writer.ToString ( ); See Also |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme