Processor: Do rewriter before sanitizer for entry.Content.

Addresses #163.
This commit is contained in:
dzaikos 2018-07-06 00:17:03 -04:00
parent 845cf2adba
commit e1c56b2e53

View file

@ -54,8 +54,8 @@ func (f *FeedProcessor) Process() {
}
}
entry.Content = sanitizer.Sanitize(entry.URL, entry.Content)
entry.Content = rewrite.Rewriter(entry.URL, entry.Content, f.rewriteRules)
entry.Content = sanitizer.Sanitize(entry.URL, entry.Content)
}
}