SBBCodeParser
SBBCodeParser copied to clipboard
BBCode Parser Class
When you try to parse a URL, let's say ``` [url=newsattachment.php?id=23]attachment[/url] ``` that doesn't work. THX in advance.
Fix for links and parameters that contains = symbol. String for testing. [URL=https://www.youtube.com/watch?v=v5Xr-WkW5JM]NASA’s Spitzer Reveals Largest Batch of Earth-Size, Habitable-Zone Planets Around a Single Star [/URL]
Been looking for a good bbcode to html parser and so far SBBCodeParser has passed all the tests except it doesn't seem to parse bbcode inside [url] tags.... ie; ```...
hi, is there any class to make sure the closing tag is closed so i can take the user input, now this is only available to use for admin, can't...
I had a situation where a user had entered into _SCEditor_ a youtube video inside some other formatting tags (`[b]`,`[i]`) and the rendering to HTML was throwing an exception. Digging...
If the [url='...'] have a '=' like "index.php?view=1" $atribbs seems empty and get filled by if(empty($attribs['default'])) $attribs['default'] = $content; i think... Result-> bad url
I have noticed that whilst this works: ``` echo $parser->parse(file_get_contents('data.txt')) ->detect_links() ->get_html(); ``` This however produces an error: ``` echo $parser->parse(file_get_contents('data.txt')) ->detect_links() ->detect_emoticons() ->get_html(); ``` This is the error I...
If you try the following: ``` (new \SBBCodeParser\Node_Container_Document())->parse(str_repeat('a',1024))->detect_emails(); ``` PHP seems to crash and the browser says 'Connection interrupted'. THX in advace.
Hi there, I was suprised when I validated my website with the W3C validator : I have 16 errors and 15 : Element br not allowed as child of element...
It seems upon testing this out I get this error: Warning: preg_match_all(): No ending delimiter ')' found in /var/www/includes/bbcode/classes/Node/Container/Document.php on line 1009