Topics

summarize modifier

$text|summarize attempts to strip and possibly truncate the selected text.  There are two parameters:

  • text type of either 'html' (with html tags for line/section breaks) or default(with newline/carriage return line breaks)
  • type of summary which is:
    • 'para' which returns the first paragraph or div with all the tags stripped
    • 'paralinks' which returns the first paragraph or div with links still intact
    • number, which simply strips the tags from the text and returns the 'number' of words
{$event->body|summarize:"html":"paralinks"}
Loading Help