diff --git a/display.go b/display.go index 3b16f01..79e0e0e 100644 --- a/display.go +++ b/display.go @@ -276,7 +276,7 @@ func jsonify(node *html.Node) map[string]interface{} { case html.ElementNode: vals["tag"] = node.Data case html.TextNode: - text := strings.TrimSpace(node.Data) + text := node.Data if text != "" { if pupEscapeHTML { // don't escape javascript