Skip to content

Commit 9e3cbd6

Browse files
jwjscottaddie
authored andcommitted
Update docs to reflect what code does (#2469)
In the remarks for HtmlAttributeEncode it does not mention encoding of single quotation marks. See implementation here https://referencesource.microsoft.com/#System.Web/Util/HttpEncoder.cs,431465f6aca165dd,references
1 parent 6bdf823 commit 9e3cbd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Web/HttpUtility.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
<format type="text/markdown"><![CDATA[
207207
208208
## Remarks
209-
The <xref:System.Web.HttpUtility.HtmlAttributeEncode%2A> method converts only quotation marks ("), ampersands (&), and left angle brackets (<) to equivalent character entities. It is considerably faster than the <xref:System.Web.HttpUtility.HtmlEncode%2A> method.
209+
The <xref:System.Web.HttpUtility.HtmlAttributeEncode%2A> method converts only double quotation marks ("), single quotation marks ('), ampersands (&), and left angle brackets (<) to equivalent character entities. It is considerably faster than the <xref:System.Web.HttpUtility.HtmlEncode%2A> method.
210210
211211
The string result from the <xref:System.Web.HttpUtility.HtmlAttributeEncode%2A> method should be used only for double-quoted attributes. Security issues might arise when using the <xref:System.Web.HttpUtility.HtmlAttributeEncode%2A> method with single-quoted attributes.
212212
@@ -1867,4 +1867,4 @@
18671867
</Docs>
18681868
</Member>
18691869
</Members>
1870-
</Type>
1870+
</Type>

0 commit comments

Comments
 (0)