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 fileidId of the file to extract text from
STRING selectorSelector to use, eg '*', 'h1' or 'p'.
RECORD optionsOptions
STRING addiftruncatedText to add if we truncated the excerpt. Defaults to an ellipsis (…)
INTEGER limitutf8bytesReturn at most this number of bytes (including any 'addiftruncated')
INTEGER maxlengthReturn at most this number of unicode characters (including 'addiftruncated')
Return value
STRINGExtract text