Don't trim whitespace

pull/111/head
Andre Marianiello 5 years ago
parent 2bb485903c
commit 5e4c14aae9

@ -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

Loading…
Cancel
Save