Function __global->_phpbb3_post_text_to_comcode
Definitions
sources/forum/phpbb3.php
- Cleanup a phpBB post to match Comcode.Handles phpBB's special post markup.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $text | string | No | No | required parameter | N/A | N/A | The post |
| $attach_ids | ?array | No | No | Null | N/A | N/A | List of attachment IDs (null: do not include attachments) |
Returns
- Cleaned post
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Cleanup a phpBB post to match Comcode.Handles phpBB's special post markup.
*
* @param string $text The post
* @param ?array $attach_ids List of attachment IDs (null: do not include attachments)
* @return string Cleaned post
*/
function _phpbb3_post_text_to_comcode(string $text, ?array $attach_ids = null) : string
* Cleanup a phpBB post to match Comcode.Handles phpBB's special post markup.
*
* @param string $text The post
* @param ?array $attach_ids List of attachment IDs (null: do not include attachments)
* @return string Cleaned post
*/
function _phpbb3_post_text_to_comcode(string $text, ?array $attach_ids = null) : string

