javascript limit number of words\ code example
Example: Limit text to specified number of words using Javascript
"Want better search results? See our search tips".split(" ").splice(0,3).join(" ")
"Want better search results? See our search tips".split(" ").splice(0,3).join(" ")