Use lynx instead of w3m
Anirudh Oppiliappan x@icyphox.sh
Tue, 14 Sep 2021 21:48:34 +0530
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
reader/plain.go
→
reader/plain.go
@@ -6,8 +6,8 @@ "strings"
) func MakePlaintext(html []byte) ([]byte, error) { - args := []string{"-T", "text/html", "-dump"} - cmd := exec.Command("w3m", args...) + args := []string{"-image_links", "-dump", "-stdin"} + cmd := exec.Command("lynx", args...) cmd.Stdin = strings.NewReader(string(html)) out, err := cmd.Output() if err != nil {