this function takes the first x words or paragraphs from a long text and displays it as teaser with a "read more" link underneath.

copy the code of string handling / summarize article

click here to select all the code