JQuery Limit Words en String
"this is a longish string of text".replace(/^(.{11}[^\s]*).*/, "$1");
//"this is a longish"
Careful Crocodile
"this is a longish string of text".replace(/^(.{11}[^\s]*).*/, "$1");
//"this is a longish"