question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

$.text() can not get entire text

See original GitHub issue
c = require 'cheerio'

$ = c.load '<p><span>sssss</span></p>'

$.text()  -----> ''

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
evandrixcommented, Oct 11, 2017

for $.root().text(), i get the error msg TypeError: $.root is not a function

how about $("*").text() instead?

1reaction
Nomeasmocommented, May 11, 2015

Or you can use the following to get all.

$.root().text()
Read more comments on GitHub >

github_iconTop Results From Across the Web

jquery - Using .text() to retrieve only text not nested in child tags
I liked this reusable implementation based on the clone() method found here to get only the text inside the parent element.
Read more >
Fix problems sending, receiving or connecting to Messages
If you can't send or receive messages, or have trouble connecting to Messages on web, try the following suggestions below. Fix problems sending...
Read more >
Working with text data — pandas 1.5.2 documentation
There are two ways to store text data in pandas: object -dtype NumPy array. StringDtype extension type. We recommend using StringDtype to store...
Read more >
Apply criteria to text values - Microsoft Support
The table below shows how you can use some of the common criteria for Text data types. Try using the different criteria and...
Read more >
Response.text() - Web APIs - MDN Web Docs
It returns a promise that resolves with a String . The response is always decoded using UTF-8.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found