jBBCode
jBBCode copied to clipboard
A lightweight but extensible BBCode parser
How to define for example the tag [hr] to replace with ? Without closing tag.
I've got this warning message every time I composer update: ``` Class JBBCode\DocumentElementTest located in ./vendor/jbbcode/jbbcode/JBBCode/tests/DocumentElementTest.php does not comply with psr-0 autoloading standard. Skipping. ```
I have some html with javasript tag ` var i = 1; var arr = [1,2,3] var failed_variable = arr[i]; // this was replaced with arr ` How to skip...
Code definition from example to `[color]` with `OptionValidator` ``` $builder = new CodeDefinitionBuilder('color', '{param}'); $builder->setUseOption(true)->setOptionValidator($CssColorValidator); ``` Here is text with invalid `option` in `[color]` ``` [b] bold text [color=!nvaL!d_color] [u]...
`[url=http://lostpix.com/?v=2018-02-04_qa1th9680k10zvlhcm8qr6zkt.png][img]http://lostpix.com/thumbs/2018-02/04/qa1th9680k10zvlhcm8qr6zkt.png[/img][/url]` ``
It works with url bbcode like : `[url=http://google.com]abc[/url]` But failed to work with `[url='http://google.com']abc[/url]`
I needed list of all code definitions Parser can handle, but could not find a way to get it. I suggest expanding class Parser with something like this: ``` public...
This PR is actually based on my other cleanup PR. This PR makes only sense after the cleanup PR has been merged. I found two issues: * when uppercased tags...
The methods `incrementCounter()`, `decrementCounter()`, `resetCounter()`, and `getCounter()` have been marked as deprecated for quite some time now and as far as I can tell, they are no longer touched by...
The default url tag defintion ignores the https protocoll and set all urls to http. Escpecially for intern links on a website it's a problem, because all bbcode formatted texts...