blob: 2d577a67b5a614fa86e3fb6e069d8a65e2a38799 [file]
library markdown.util;
import 'ast.dart';
/// Replaces `<`, `&`, and `>`, with their HTML entity equivalents.
String escapeHtml(String html) {
return html.replaceAll('&', '&amp;')
.replaceAll('<', '&lt;')
.replaceAll('>', '&gt;');
}
typedef Node Resolver(String name);