V
V
Vlad Demchuk2021-01-29 15:38:23
JavaScript
Vlad Demchuk, 2021-01-29 15:38:23

How to use axios cheerio to get all the text from the block including the text from the children?

Let's say we have the following code:
601400b0988ca970571225.png

How do I get all the text from the .short-characteristics block, including the text that is included in it, in

  • and in everything


  • Or the second case (I think there is no difference, but let it be)
    <div class="container"> 
         <div class="info">
            тут текст что надо получить
            <span>тут текст что надо получить</span>
            <span>тут текст что надо получить</span>
            <span>тут текст что надо получить</span>
            <span>тут текст что надо получить</span>
    </div>
    <div>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question