JQuery membatasi kata -kata dalam 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"