| Index: lib/src/util.dart
|
| diff --git a/lib/src/util.dart b/lib/src/util.dart
|
| index 4b5f6d55ea09ab198074b4e939efbc4d401a149c..e254d26e8d3bc27f90cc0fe621280f1df0e97720 100644
|
| --- a/lib/src/util.dart
|
| +++ b/lib/src/util.dart
|
| @@ -1,20 +1,9 @@
|
| -library markdown.util;
|
| +library markdown.src.util;
|
|
|
| /// Replaces `<`, `&`, and `>`, with their HTML entity equivalents.
|
| String escapeHtml(String html) {
|
| - if (html == '' || html == null) return null;
|
| return html
|
| .replaceAll('&', '&')
|
| .replaceAll('<', '<')
|
| .replaceAll('>', '>');
|
| }
|
| -
|
| -/// Removes null or empty values from [map].
|
| -void cleanMap(Map map) {
|
| - map.keys.where((e) => isNullOrEmpty(map[e])).toList().forEach(map.remove);
|
| -}
|
| -
|
| -/// Returns true if an object is null or an empty string.
|
| -bool isNullOrEmpty(object) {
|
| - return object == null || object == '';
|
| -}
|
|
|