Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrove committed Apr 15, 2015
1 parent 6467b43 commit 3c39ad2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/lib/_internal/pub/test/serve/404_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ main() {
expect(response.statusCode, equals(404));

// Should mention the asset that can't be found.
expect(response.body, contains('".packages"'));
expect(response.body, contains('"/packages"'));
});

endPubServe();
Expand Down
2 changes: 1 addition & 1 deletion sdk/lib/convert/html_escape.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class HtmlEscape extends Converter<String, String> {
case "'": if (mode.escapeApos) replacement = '&#39;'; 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();
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/convert/html_escape_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const _NOOP = 'Nothing_to_escape';

const _TEST_INPUT = """<A </test> of \xA0 "double" & 'single' values>""";

const _OUTPUT_UNKNOWN = '&lt;A &lt;&#46;test&gt; of \xA0 &quot;double&quot; '
const _OUTPUT_UNKNOWN = '&lt;A &lt;&#47;test&gt; of \xA0 &quot;double&quot; '
'&amp; &#39;single&#39; values&gt;';

const _OUTPUT_ATTRIBUTE =
Expand Down

0 comments on commit 3c39ad2

Please sign in to comment.