phpBB

Development Wiki

Function.strip bbcode

From phpBB Development Wiki

strip_bbcode - Strips all BBcode from a text string and returns the plain content.

Description

void strip_bbcode ( string &$text [, $uid ])
Strips BBCode from a string and returns the plain text.

Parameters

Parameter Default Description
text Required The text string
uid '' (optional) BBCode UID which helps the function locate the BBCode to strip from the text string


Return Values

Returns the $text variable by reference.

Examples

Example #1 A Simple Example

strip_bbcode($text_only_message$row['bbcode_uid']);

See Also