Skip to content

Commit 2af6f42

Browse files
joshlanggewarren
authored andcommitted
Update JavaScriptEncoder.xml (#3722)
1 parent d3879b0 commit 2af6f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Text.Encodings.Web/JavaScriptEncoder.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
180180
Unlike the <xref:System.Text.Encodings.Web.JavaScriptEncoder.Default> encoder, this encoder instance does not escape HTML-sensitive characters such as &lt;, &gt;, &amp;. As a result, it must be used cautiously; for example, it can be used if the output data is within a response whose content-type is known with a charset set to UTF-8.
181181
182-
Unlike the <xref:System.Text.Encodings.Web.JavaScriptEncoder.Default> encoding, the quotation mark is encoded as \" rather than \u0022.
182+
Unlike the <xref:System.Text.Encodings.Web.JavaScriptEncoder.Default> encoding, the quotation mark is encoded as \\" rather than \u0022.
183183
184184
Unlike the <xref:System.Text.Encodings.Web.JavaScriptEncoder.Default> encoding (which only allows <xref:System.Text.Unicode.UnicodeRanges.BasicLatin?displayProperty=nameWithType>), using this encoder instance allows <xref:System.Text.Unicode.UnicodeRanges.All?displayProperty=nameWithType> to go through unescaped.
185185

0 commit comments

Comments
 (0)