UberBots Website Documentation
Function Documentation - phpBBsession.php
parseBB
parseBB - parses a text string for bbCode
Description
string parseBB ( string $text )
The function parses the string input and replaces bb tags with appropriate HTML ones.
Parameters
- text
This is the string of bbCode that will be parsed
Return Values
This function will return a string of HTML formatted text according to the bbCodes within the input string.
Notes
This function is primarily used within the bbCode module, where it parses the string input by the user.
Example
$text = "foo, [b]bar[/b], [i]baz[/i]"; return parseBB($text);
This code will return this: "foo, bar, baz". The function will parse the bbCode into HTML.- text