mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
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;
|
||||||
}
|
}
|
||||||
@@ -531,5 +531,5 @@ public class FeedUtils {
|
|||||||
}
|
}
|
||||||
return xmlString;
|
return xmlString;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user