I want to extract the text from <p><strong>Some text</strong></p>
and using Cheerio in Node.JS.
I have the following code: $('p > strong').text()
but it does not output anything.
console.log($('p > strong').text());
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<p><strong>Some text</strong></p>