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

Unified Diff: utils/dartdoc/client-live-nav.dart

Issue 9225039: Integrate MDN content into API documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years, 11 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 | « utils/apidoc/static/mdn-logo-tiny.png ('k') | utils/dartdoc/dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/dartdoc/client-live-nav.dart
diff --git a/utils/dartdoc/client-live-nav.dart b/utils/dartdoc/client-live-nav.dart
index 78e59ab09e68839acfe85d8b74d31025ac7037a7..6395d426d0568e79f4a605f759e784fcebe4884f 100644
--- a/utils/dartdoc/client-live-nav.dart
+++ b/utils/dartdoc/client-live-nav.dart
@@ -51,13 +51,12 @@ buildNavigation(libraries) {
final html = new StringBuffer();
for (final libraryName in libraryNames) {
- final saneLibrary = sanitize(libraryName);
html.add('<h2><div class="icon-library"></div>');
if (currentLibrary == libraryName && currentType == null) {
- html.add('<strong>$saneLibrary</strong>');
+ html.add('<strong>${md.escapeHtml(libraryName)}</strong>');
} else {
- final url = '$prefix$saneLibrary.html';
- html.add('<a href="$url">$saneLibrary</a>');
+ final url = '$prefix${sanitize(libraryName)}.html';
+ html.add('<a href="$url">${md.escapeHtml(libraryName)}</a>');
}
html.add('</h2>');
« no previous file with comments | « utils/apidoc/static/mdn-logo-tiny.png ('k') | utils/dartdoc/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698