diff --git a/xml/System.Web.UI/HtmlTextWriter.xml b/xml/System.Web.UI/HtmlTextWriter.xml index 1aaf0d71e0e..38a38f83e71 100644 --- a/xml/System.Web.UI/HtmlTextWriter.xml +++ b/xml/System.Web.UI/HtmlTextWriter.xml @@ -277,12 +277,12 @@ alert('Hello'); - - + + - - - + + + Method System.Web @@ -296,12 +296,12 @@ alert('Hello'); - + A string containing the name of the attribute to add. A string containing the value to assign to the attribute. - + to encode the attribute and its value; otherwise, . Adds the specified markup attribute and value to the opening tag of the element that the object creates with a subsequent call to the method, with optional encoding. @@ -314,7 +314,7 @@ alert('Hello'); Use the method with `fEncode` set to `true`, if the attribute can possibly contain a quotation mark ("), a less than sign (<), or an ampersand (&). The method call will encode the attribute to meet the requirements of the requesting device. You can set `fEncode` to `false`, if you know that none of these characters will be generated, or if you know that the attribute is already encoded. -If the attribute type is `Style`, the value won't be encoded even if `fEndode` is `true`. Ensure that the style value is CSS-compliant and doesn't contain malicious code. +If the attribute type is `Style`, the value won't be encoded even if `fEncode` is `true`. Ensure that the style value is CSS-compliant and doesn't contain malicious code. The coding pattern for rendering markup elements is as follows: