Content deleted Content added
update |
select only main paragraphs |
||
Line 3:
// Goes through all the p-elements and splits their content into span-elements. Each span corresponds to a sentence.
function divideParagraphsIntoSentences(){
let paragraphs = document.
for(let paragraph of paragraphs){
let text = paragraph.textContent.split('\r').join('').split('\n').join('');
|