Miscellaneous
excerpt()
Signature
Section titled “Signature”excerpt() — returns any
Description
Section titled “Description”Extracts an excerpt from text that matches the first instance of a given phrase.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
text | string | yes | — | The text to extract an excerpt from. |
phrase | string | yes | — | The phrase to extract. |
radius | numeric | yes | 100 | Number of characters to extract surrounding the phrase. |
excerptString | string | yes | ... | String to replace first and/or last characters with. |
Examples
Section titled “Examples”#excerpt(text="ColdFusion CFWheels is a Rails-like MVC framework for Adobe ColdFusion, Railo and Lucee", phrase="framework", radius=5)# -> ... MVC framework for ...