Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var str = "<div class=prw_rup prw_reviews_text_summary_hsx data-prwidget-name=reviews_text_summary_hsx data-prwidget-init=handlers>
- <div class=entry><p class=partial_entry>You have to try their special sushi rolls like acevichado or patrullero. They have great selections of sushi and other dishes.</p>
- </div></div><div class=prw_rup prw_reviews_text_summary_hsx data-prwidget-name=reviews_text_summary_hsx data-prwidget-init=handlers><div class=entry><p class=partial_entry>
- All you can eat sushi fir $20 ($24 including tax)! Christian, our server, was wonderful and attentive.
- </p></div></div><div class=prw_rup prw_reviews_text_summary_hsx data-prwidget-name=reviews_text_summary_hsx data-prwidget-init=handlers>
- <div class=entry><p class=partial_entry>The place was good, also the waiters, but definitely sushi is the best in town
- for my opinion, even with the few options of it in this place. I will be there soon again.</p></div></div>";
- - You have to try their special sushi rolls like acevichado or patrullero. They have great selections of sushi and other dishes.
- - All you can eat sushi fir $20 ($24 including tax)! Christian, our server, was wonderful and attentive.
- - The place was good, also the waiters, but definitely sushi is the best in town for my opinion, even with the few options of it in this place. I will be there soon again.
- var temp = "<p class=partial_entry";
- var res = str.split('>');
- var res2 = res.indexOf(temp) + 1;
- var resultado = null;
- if (res2 < res.length && res2 != -1) {
- resultado = res[ res2 ]; // gets the next one
- }
- alert(resultado);
- const commentNodes = document.getElementsByClassName('partial_entry');
- const comments = commentNodes.map(node => node.innerText);
Add Comment
Please, Sign In to add comment