fix voor zinnen aan elkaar
This commit is contained in:
@@ -58,7 +58,7 @@ func main() {
|
||||
var item Item
|
||||
x(xml.Unmarshal(b, &item), filename)
|
||||
x(fp.WriteString(u.AddEnd(u.FixSpace(item.Title))))
|
||||
doc, err := gokogiri.ParseHtml([]byte(`<html><body>` + item.Text + `</body></html>`))
|
||||
doc, err := gokogiri.ParseHtml([]byte(`<html><body>` + u.HtmlFixString(item.Text) + `</body></html>`))
|
||||
x(err)
|
||||
root := doc.Root()
|
||||
pp, err := root.Search(`//body/p | //body/h2`)
|
||||
|
||||
Reference in New Issue
Block a user