瀏覽代碼

Processor: Do rewriter before sanitizer for `entry.Content`.

Addresses #163.
dzaikos 8 年之前
父節點
當前提交
e1c56b2e53
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      reader/processor/processor.go

+ 1 - 1
reader/processor/processor.go

@@ -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)
 	}
 }