Explorar el Código

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

Addresses #163.
dzaikos hace 8 años
padre
commit
e1c56b2e53
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
 	}
 }