forked from Archives/Athou_commafeed
huge perf boost
This commit is contained in:
@@ -130,7 +130,7 @@ public class FeedUtils {
|
|||||||
public static String replaceHtmlEntitiesWithNumericEntities(String source) {
|
public static String replaceHtmlEntitiesWithNumericEntities(String source) {
|
||||||
String result = source;
|
String result = source;
|
||||||
for (String entity : HtmlEntities.NUMERIC_MAPPING.keySet()) {
|
for (String entity : HtmlEntities.NUMERIC_MAPPING.keySet()) {
|
||||||
result = result.replace(entity, HtmlEntities.NUMERIC_MAPPING.get(entity));
|
result = StringUtils.replace(result, entity, HtmlEntities.NUMERIC_MAPPING.get(entity));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user