WebDesignBase::ExtractRTDExcerpt (open)
Extract an excerpt from a RTD file
Syntax
LOADLIB "mod::publisher/lib/webdesign.whlib";
STRING FUNCTION ExtractRTDExcerpt(INTEGER fileid, STRING selector, RECORD options)
Parameters
INTEGER fileid
Id of the file to extract text from
STRING selector
Selector to use, eg '*', 'h1' or 'p'.
RECORD options
Options
STRING addiftruncated
Text to add if we truncated the excerpt. Defaults to an ellipsis (…)
INTEGER limitutf8bytes
Return at most this number of bytes (including any 'addiftruncated')
INTEGER maxlength
Return at most this number of unicode characters (including 'addiftruncated')
Return value
STRING
Extract text