strip html from the author field (fix #351)

This commit is contained in:
Athou
2013-06-27 16:54:58 +02:00
parent 110c291e29
commit 9e2892cbe0
2 changed files with 3 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ public class FeedParser {
FeedUtils.toAbsoluteUrl(item.getLink(), feed.getLink()),
2048));
entry.setUpdated(validateDate(getEntryUpdateDate(item)));
entry.setAuthor(FeedUtils.truncate(item.getAuthor(), 128));
entry.setAuthor(item.getAuthor());
FeedEntryContent content = new FeedEntryContent();
content.setContent(getContent(item));

View File

@@ -42,6 +42,8 @@ public class FeedUpdateService {
FeedEntry update = null;
if (existing == null) {
entry.setAuthor(FeedUtils.truncate(FeedUtils.handleContent(
entry.getAuthor(), feed.getLink(), true), 128));
FeedEntryContent content = entry.getContent();
content.setTitle(FeedUtils.truncate(FeedUtils.handleContent(
content.getTitle(), feed.getLink(), true), 2048));
@@ -70,5 +72,4 @@ public class FeedUpdateService {
metricsBean.entryUpdated(statusUpdateList.size());
}
}
}