excerpt()
Description
Extracts an excerpt from text that matches the first instance of phrase.
Function Syntax
excerpt(text, phrase [, radius, excerptString ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
text |
string |
Yes | |
The text to extract an excerpt from. |
phrase |
string |
Yes | |
The phrase to extract. |
radius |
numeric |
No | 100 |
Number of characters to extract surrounding the phrase. |
excerptString |
string |
No | ... |
String to replace first and/or last characters with. |
Examples
#excerpt(text="ColdFusion Wheels is a Rails-like MVC framework for Adobe ColdFusion and Railo", phrase="framework", radius=5)#
-> ... MVC framework for ...
