/ Published in: HTML
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// makeTeaser: makes a teaser for the number of words specified function makeTeaser($text, $numWords) { $words = split(' ', $text); $words = array_chunk($words, $numWords); $output = implode(' ', $words[0]); $output = strip_tags($output) . '...'; return $output; }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)