Skip to content

Commit

Permalink
Update JavaScriptEncoder.xml (#3722)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlang authored and gewarren committed Dec 31, 2019
1 parent d3879b0 commit 2af6f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xml/System.Text.Encodings.Web/JavaScriptEncoder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
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.
Unlike the <xref:System.Text.Encodings.Web.JavaScriptEncoder.Default> encoding, the quotation mark is encoded as \" rather than \u0022.
Unlike the <xref:System.Text.Encodings.Web.JavaScriptEncoder.Default> encoding, the quotation mark is encoded as \\" rather than \u0022.
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.
Expand Down

0 comments on commit 2af6f42

Please sign in to comment.