Skip to content

Miscellaneous

excerpt()

excerpt() — returns any

Extracts an excerpt from text that matches the first instance of a given phrase.

NameTypeRequiredDefaultDescription
textstringyesThe text to extract an excerpt from.
phrasestringyesThe phrase to extract.
radiusnumericyes100Number of characters to extract surrounding the phrase.
excerptStringstringyes...String to replace first and/or last characters with.
#excerpt(text="ColdFusion CFWheels is a Rails-like MVC framework for Adobe ColdFusion, Railo and Lucee", phrase="framework", radius=5)#
-> ... MVC framework for ...