convert
string convert( string strPost_message, array arAllow );
The function convert formats the message text.
Parameters
Parameter | Description |
---|---|
strPost_message | Text to be formatted. |
arAllow | Array of parameters of the text formatting. Has the structure similar to
the array ALLOW of the CForum
class variable. Contains the following parameters which can be set to Y
or N:
|
Example
<? $parser = new textParser(); // create textParser $arAllow = $Forum->ALLOW; // fill the formatting array // from the CForum class member array // the two arrays are identical $arAllow["SMILES"] = "N"; // forbid smileys as icons // format and display a message echo $parser->convert($strMessage, $arAllow); ?>
© «Bitrix24», 2001-2024