PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_BBCodeParser

This is a parser to replace UBB style tags with their html equivalents.

This package is unmaintained.

Download latest release 1.2.4 (archived versions might be outdated)

License: PHP License

Description

This is a parser to replace UBB style tags with their html equivalents.
It does not simply do some regex calls, but is complete stack based parse engine. This ensures that all tags are properly nested, if not, extra tags are added to maintain the nesting. This parser should only produce xhtml 1.0 compliant code. All tags are validated and so are all their attributes. It should be easy to extend this parser with your own tags.

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#373ClosedBug2003-12-07URL's with '&' are parsed incorrectly
#462ClosedBug2003-12-19URLs in brakets borked
#484ClosedBug2003-12-23$_SERVER["PHP_SELF"] or $_SERVER['PHP_SELF'] in text generates notice
#486ClosedBug2003-12-23BBCodeParser error on proposal page
#512ClosedBug2004-01-03[list] in a [list] breaks the first [list]
#518DuplicateBug2004-01-04Notices break PEPr (pearweb)
#924ClosedBug2004-02-28[img]bug
#1021ClosedBug2004-03-16Does not parse target for URLs
#1201ClosedBug2004-04-13[list] output adding extra <li></li>
#1257BogusBug2004-04-21li
#1258ClosedBug2004-04-22Extra tags rendered with faulty BBCode
#1299ClosedBug2004-04-27Case sensitive in tag ?
#1388ClosedBug2004-05-11www links not expanded correctly
#1512ClosedBug2004-05-27URL Tags Allow Javascript injection
#1755ClosedBug2004-06-30tags around an url -> mess
#1979ClosedBug2004-07-25Whitespaces in attribute are braking it
#2035ClosedReq2004-07-31bbCode non-extensible
#2478BogusReq2004-10-07Additional attributes in tags
#2575Wont fixReq2004-10-20HTML to UBB method
#2580ClosedBug2004-10-20HTML_BBCodeParser example ini file needs quoted square brackets
#2870BogusBug2004-12-01external homepage/demo: target= should be t=
#3142DuplicateReq2005-01-09Package doesn't work with PHP5
#3447ClosedReq2005-02-12Image alt Attribute
#3520DuplicateBug2005-02-18Typo in parser.php example
#3690ClosedBug2005-03-03BBCodeParser does not allow numbers in the opening tag
#3775ClosedBug2005-03-11strstr(): Empty delimiter.
#3932ClosedBug2005-03-23External URLs are parsed without adding http://
#4844ClosedBug2005-07-16Arbitrary HTML injection
#4936DuplicateReq2005-07-28Nested URLs in quotes not handled
#5609ClosedBug2005-10-05BBCodeParser allows XSS
#5844ClosedBug2005-11-01Extending HTML_BBCodeParser class does not work
#6303ClosedBug2005-12-20IMG tags incorrect
#6335ClosedBug2005-12-22List bug
#6913BogusBug1.12006-02-23links are converted wrong
#7230OpenBug1.12006-03-28doesn't like base64...
#9694SpamBug<a href= http://15.vpeske.info/l0oan-41.html >L0oan</a>,2006-12-25<a href= http://15.vpeske.info/l0oan-41.html >L0oan</a>,
#10513Wont fixReq1.12007-03-26New BBCode format not accounted for?
#10616ClosedBugCVS2007-04-04Values are being truncated when a space is found.
#11370ClosedBug1.2.12007-06-19img don't like '='
#11399BogusBug1.2.12007-06-22img tags don't work
#11400ClosedBug1.2.12007-06-22Lists start with an empty listitem
#11576ClosedDoc1.2.22007-07-10Problems with http:// in [img]
#11684OpenReq2007-07-25Use of pecl extension if available
#12002ClosedReq1.2.22007-09-07Target set in [url] doesn't work
#12187Wont fixBug1.2.22007-10-05Quote recognition in parser is broken
#12215OpenBug1.2.22007-10-10[url] doesn't work like expected
#12273OpenDoc1.2.22007-10-18End-user documentation is missing
#12423ClosedReq1.2.22007-11-11IRC links not allowed
#12644ClosedBug1.2.22007-12-09[url=http://www.google.nl]http://www.google.nl[/url] expands strange
#14380ClosedBug1.2.22008-07-21Image Filter does not generate alt by default
#14579OpenBug1.2.22008-08-29security risc: javascript code injection is possible
#14668BogusBug1.2.22008-09-19bad path to include
#16219OpenBug1.2.22009-05-11[size=9] Doesn't work (int > 9 does)
#18927Wont fixBug1.2.22011-10-24[list] don't result in a bulleted list
#19420ClosedBug1.2.32012-05-15PEAR::getStaticProperty() should not be called statically
#19426OpenBug1.2.32012-05-19Wrong sustitutions, various bugs
#19443OpenBug1.2.32012-05-30[img] doesn't work like expected
#20392SpamDocUnknown2014-09-06Watch// The November Man [ONLINE FOR FREE!]