- Currently, we are handling with complexity rendering, and maybe we have a performance problem. More detail: Default BBCode tag to support in eXo Forum:
| No | BBCode Tag | HTML |
| 1 | [i] my italic test [/i] [I] my italic test [/I] |
my italic test |
| 2 | [b] my bold test [/b] | my bold test |
| 3 | [quote] my bold test [/quote] | my bold test |
| 4 | aa [code] my bold test [/code] bc | aamy bold testbc |
| 5 | [color=red]Red Text[/color] | Red Text |
| 6 | [size=15]Red Text[/size] | Red Text |
| 7 | [url]http://example.com[/url] | http://example.com |
| 8 | [url]ftp://example.com/file-explorer[/url] | ftp://example.com/file-explorer |
- This component which uses to improve the way to parser BBCode Tags in Forum, it also made more easier to understand and maintenance as well.
Use this command to build project:
mvn clean install
By default, it will run only unit tests.
Sample code:
-
BBCode Rendering
String bbCode = "[i] my italic test [/i]"; DefaultBBCodeParser parser = newParser(bbCode); String got = parser.process(); assertEquals(" my italic test ", got);