diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-06-23 23:19:28 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-06-23 23:19:28 +0200 |
commit | dc32fb843d1408e2ca4a986caeb05dfa24a0f981 (patch) | |
tree | 8d2ec392a88464704e9d5cf7d66d0c67a86eb64f /src/de/podfetcher/syndication/util | |
parent | cdc8adab8d59f229eb93365ebbdf3a6f1673c689 (diff) | |
download | AntennaPod-dc32fb843d1408e2ca4a986caeb05dfa24a0f981.zip |
encoded content is now properly rendered
Diffstat (limited to 'src/de/podfetcher/syndication/util')
-rw-r--r-- | src/de/podfetcher/syndication/util/HtmlUnescaper.java | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/de/podfetcher/syndication/util/HtmlUnescaper.java b/src/de/podfetcher/syndication/util/HtmlUnescaper.java deleted file mode 100644 index 703f17ec3..000000000 --- a/src/de/podfetcher/syndication/util/HtmlUnescaper.java +++ /dev/null @@ -1,26 +0,0 @@ -package de.podfetcher.syndication.util; - -import java.util.HashMap; - -/** Unescapes HTML */ -public class HtmlUnescaper { - private static HashMap<String, String> symbols; - - static { - symbols = new HashMap<String, String>(); - symbols.put(" ", " "); - symbols.put(""", "\""); - symbols.put("&", "&"); - symbols.put("<", "<"); - symbols.put(">", ">"); - - } - - public static String unescape(final String source) { - String result = source; - for (String key : symbols.keySet()) { - result = result.replaceAll(key, symbols.get(key)); - } - return result; - } -} |