Encodes the specified text for the requesting device, and then writes it to the output stream.
Assembly: System.Web (in System.Web.dll)
If the text parameter passed into the method is null or has a length of zero, then nothing is written.
Use the method when a string contains angle brackets (< or >) or an ampersand (&) and you want to ensure that they are rendered correctly on the requesting device.
The method uses the base class's WriteEncodedText method.