html: add passthru version that works with appengine

This commit is contained in:
Jonathan Ingram
2017-08-26 13:50:52 +10:00
parent f51d8e1c87
commit dcf48c42ca
2 changed files with 20 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
// +build !appengine
package docconv
import (
+18
View File
@@ -0,0 +1,18 @@
// +build appengine
package docconv
import (
"io"
"io/ioutil"
"log"
)
func HTMLReadability(r io.Reader) []byte {
b, err := ioutil.ReadAll(r)
if err != nil {
log.Printf("HTMLReadability: %v", err)
return nil
}
return b
}