You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text() method in JQuery keeps whitespaces between text parts. Cheerio unfortunatelly merges text parts from tags thogether givign you quite gibberish words.
See exampel https://api.jquery.com/text/ I tested it by myself and JQuery text() method keeps whitespaces between the text parts of the tags. This is very useful.
Cheerio on the other hand messes text parts alltogther without no spaces which is a pain.
text() method in JQuery keeps whitespaces between text parts. Cheerio unfortunatelly merges text parts from tags thogether givign you quite gibberish words.
See exampel https://api.jquery.com/text/ I tested it by myself and JQuery text() method keeps whitespaces between the text parts of the tags. This is very useful.
Cheerio on the other hand messes text parts alltogther without no spaces which is a pain.
E.g. from this
JQuery text() gives you expected text
PART ONE GENERAL PROVISIONS
but Cheerio gives youPART ONEGENERAL PROVISIONS
Also standard HTML innerText property works the same.
The text was updated successfully, but these errors were encountered: