| Index: utils/dartdoc/classify.dart
|
| diff --git a/utils/dartdoc/classify.dart b/utils/dartdoc/classify.dart
|
| index f2de3cb84760f321708cbe31f330cdb0d943835a..aad85f5c87ea106f7490b7e9f50794e7de945e1f 100644
|
| --- a/utils/dartdoc/classify.dart
|
| +++ b/utils/dartdoc/classify.dart
|
| @@ -48,7 +48,7 @@ String classifySource(SourceFile src) {
|
| }
|
|
|
| final kind = classify(token);
|
| - final text = htmlEscape(token.text);
|
| + final text = md.escapeHtml(token.text);
|
| if (kind != null) {
|
| // Add a secondary class to tokens appearing within a string so that
|
| // we can highlight tokens in an interpolation specially.
|
| @@ -66,12 +66,6 @@ String classifySource(SourceFile src) {
|
| return html.toString();
|
| }
|
|
|
| -// TODO(rnystrom): should exist in standard lib somewhere
|
| -String htmlEscape(String text) {
|
| - return text.replaceAll('&', '&').replaceAll(
|
| - '>', '>').replaceAll('<', '<');
|
| -}
|
| -
|
| bool _looksLikeType(String name) {
|
| // If the name looks like an UppercaseName, assume it's a type.
|
| return _looksLikePublicType(name) || _looksLikePrivateType(name);
|
|
|