Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1055)

Unified Diff: sdk/lib/convert/html_escape.dart

Issue 1055283003: Fix off-by-one error in https://code.google.com/p/dart/source/detail?r=45153 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/pub/test/serve/404_page_test.dart ('k') | tests/lib/convert/html_escape_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/html_escape.dart
===================================================================
--- sdk/lib/convert/html_escape.dart (revision 45184)
+++ sdk/lib/convert/html_escape.dart (working copy)
@@ -182,7 +182,7 @@
case "'": if (mode.escapeApos) replacement = '''; break;
case '<': if (mode.escapeLtGt) replacement = '&lt;'; break;
case '>': if (mode.escapeLtGt) replacement = '&gt;'; break;
- case '/': if (mode.escapeSlash) replacement = '&#46;'; break;
+ case '/': if (mode.escapeSlash) replacement = '&#47;'; break;
}
if (replacement != null) {
if (result == null) result = new StringBuffer();
« no previous file with comments | « sdk/lib/_internal/pub/test/serve/404_page_test.dart ('k') | tests/lib/convert/html_escape_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698