blob: e254d26e8d3bc27f90cc0fe621280f1df0e97720 [file] [log] [blame]
library markdown.src.util;
/// Replaces `<`, `&`, and `>`, with their HTML entity equivalents.
String escapeHtml(String html) {
return html
.replaceAll('&', '&amp;')
.replaceAll('<', '&lt;')
.replaceAll('>', '&gt;');
}