Closed andremacola closed 1 year ago
first one was an unmatched bracket in the wikipedia page. i just edited the page to fix it -
let str = ` {{Info/Filme
|nome = In Time
|título-prt = Sem Tempo
|distribuição = [[20th Century Fox]]
|lançamento =
|website = http://www.intimemovie.com}
}}
foobar oh yeah
`
let doc = wtf(str)
console.log(doc.text())
second one was the missing pbpe template added it. thanks
bouth should work now in 10.1.5
Both doc.text() and doc.sentences() either cut essential parts of the text or retain some of the wikitext, mainly at the beginning of the content.
Example: https://pt.wikipedia.org/wiki/In_Time
doc.text() returns:
In the case of the article https://pt.wikipedia.org/wiki/Camiseta
doc.text() returns truncated, starting with a comma: