close Window to return to the code
this function takes the first x words or paragraphs from a long text and displays it as teaser with a "read more" link underneath. Heres some code to extract the first part of a long paragraph, e.g. read more