Sign in
dart
/
markdown
/
refs/tags/0.11.1
/
.
/
lib
/
src
/
util.dart
blob: e254d26e8d3bc27f90cc0fe621280f1df0e97720 [
file
] [
log
] [
blame
]
library
markdown
.
src
.
util
;
/// Replaces `<`, `&`, and `>`, with their HTML entity equivalents.
String
escapeHtml
(
String
html
)
{
return
html
.
replaceAll
(
'&'
,
'&'
)
.
replaceAll
(
'<'
,
'<'
)
.
replaceAll
(
'>'
,
'>'
);
}