Convert
string CSocNetTextParser::convert( string text, bool bPreview = true, array arImages = array(), array allow = array(), string type = html );
The method formats a message. Non-static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
text | Original message. | |
bPreview | Optional parameter. True by default. | |
arImages | Array of message images. | |
allow | Array of parameters for message formatting with values Y or N:
| |
type | Message type. Optional parameter. HTML by default. |
Returned value
Returns message formatted string.
Examples
<? $parser = new CSocNetTextParser(LANGUAGE_ID, "/bitrix/images/socialnetwork/smile/"); $parser->MaxStringLen = 20; $message = $parser->convert($draftMessage); ?>
© «Bitrix24», 2001-2024