JSFiddle - React, Tailwind, and code Playground
by Aakash Chakravarthy
HTML
<input type="text"/>
<b>sssssssssss</b>
<div>sdas</div>
JavaScript
$('b').click(function(){
$.get("http://query.yahooapis.com/v1/public/yql?q=select%20content%20from%20html%20where%20url%3D%22" +encodeURIComponent($('input').val()) +"%22%20and%20xpath%3D'%2F%2Fp'&diagnostics=true", function(a){
$(a).find('p').each(function(){
var tt = $(this).text();
if(tt.split(/\b\S+\b/g).length >10){
$('div').append( tt + '<hr/>');
}
});
});
});
/*
var ff ="hi how are you ?";
alert(ff.match(/\S+/g).length);*/