I have this html text :
<!-- START X::news/news_filters.html.twig -->
<div class="row"></div>
<!-- STOP X::news/news_filters.html.twig -->
And I want to parse it and find the div row, unfortunately console.log($($.parseHTML(html))); return an object with 5 elements:
Object(5)
0: <!-- START X…/news_filters.html.twig -->
1: #text "
"
2: <div class="row">
3: #text "
"
4: <!-- STOP X…/news_filters.html.twig -->
length: 5
<prototype>: Object { jquery: "3.2.1", constructor: r(), length: 0, … }
4cec809_script_10.js:1:50083
Any idea how i can parse my html text to get a properly jquery object.