mirror of
https://github.com/sajari/docconv.git
synced 2026-10-17 05:30:56 +08:00
html: add passthru version that works with appengine
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user