VII. BBCode Functions
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.
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
This extension has no configuration directives defined in php.ini.
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)
- This BBCode tag does not accept any arguments.
- BBCODE_TYPE_SINGLE (integer)
- This BBCode tag does not have a corresponding close tag.
- BBCODE_TYPE_ARG (integer)
- This BBCode tag need an argument.
- BBCODE_TYPE_OPTARG (integer)
- This BBCode tag accept an optional argument.
- BBCODE_TYPE_ROOT (integer)
- This BBCode tag is the special tag root (nesting level 0).
- BBCODE_FLAGS_ARG_PARSING (integer)
- This BBCode tag require argument sub-parsing (the argument is also parsed by the BBCode extension).
- BBCODE_FLAGS_CDATA_NOT_ALLOWED (integer)
- This BBCode Tag does not accept content (it voids it automatically).
Table of Contents