Javascript debugger
Website design
↑
This extension aims to help parse BBCode text in order to convert it to HTML or another markup language. It uses one pass parsing and provides great speed improvement over the common approach based on regular expressions. Further more, it helps provide valid HTML by reordering open / close tags and by automatically closing unclosed tags.
Since 0.10.1 It supports argument quoting with single quotes, double quotes and HTML escaped double quotes.
Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » http://pecl.php.net/package/bbcode
An alternative solution, written in PHP, is the PEAR package » HTML_BBCodeParser.
One resource is used in the BBCode extension: a BBCode_Container returned by bbcode_create().
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
BBCODE_TYPE_NOARG
(integer)
BBCODE_TYPE_SINGLE
(integer)
BBCODE_TYPE_ARG
(integer)
BBCODE_TYPE_OPTARG
(integer)
BBCODE_TYPE_ROOT
(integer)
BBCODE_FLAGS_ARG_PARSING
(integer)
BBCODE_FLAGS_CDATA_NOT_ALLOWED
(integer)
BBCODE_FLAGS_SMILEYS_ON
(integer) - since 0.10.2
BBCODE_FLAGS_SMILEYS_OFF
(integer) - since 0.10.2
BBCODE_FLAGS_ONE_OPEN_PER_LEVEL
(integer) - since 0.10.2
BBCODE_FLAGS_REMOVE_IF_EMPTY
(integer) - since 0.10.2
BBCODE_FLAGS_DENY_REOPEN_CHILD
(integer) - since 0.10.3
BBCODE_ARG_DOUBLE_QUOTE
(integer) - since 0.10.2
BBCODE_ARG_SINGLE_QUOTE
(integer) - since 0.10.2
BBCODE_ARG_HTML_QUOTE
(integer) - since 0.10.2
BBCODE_AUTO_CORRECT
(integer) - since 0.10.2
BBCODE_CORRECT_REOPEN_TAGS
(integer) - since 0.10.2
BBCODE_DISABLE_TREE_BUILD
(integer) - since 0.10.2
BBCODE_DEFAULT_SMILEYS_ON
(integer) - since 0.10.2
BBCODE_DEFAULT_SMILEYS_OFF
(integer) - since 0.10.2
BBCODE_FORCE_SMILEYS_OFF
(integer) - since 0.10.2
BBCODE_SMILEYS_CASE_INSENSITIVE
(integer) - since 0.10.3
BBCODE_SET_FLAGS_SET
(integer) - since 0.10.2
BBCODE_SET_FLAGS_ADD
(integer) - since 0.10.2
BBCODE_SET_FLAGS_REMOVE
(integer) - since 0.10.2
Table of Contents