kefirfromperm / kefirbb

A flexible Java text processor. BB, BBCode, BB-code, HTML, Textile, Markdown, parser, translator, converter.
GNU Lesser General Public License v3.0
86 stars 14 forks source link

Safe HTML processor gets stuck or runs very slow #43

Closed attilahogyai closed 8 years ago

attilahogyai commented 8 years ago

A safehtml processor instantiated like this: TextProcessor safeProcessor = BBProcessorFactory.getInstance().createFromResource("org/kefirsf/bb/safehtml.xml"); gets stuck or runs very slow during the parsing of a string which contains many
s. Example test case: safeProcessor.process("<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>"); The issue exists in version 1.0 and 1.2 as well.

kefirfromperm commented 8 years ago

Thank you for your issue.

To resolve this bug you can use the latest safe HTML configuration. Just rename it to kefirbb.xml and put in classpath.

I recommend to use your own configuration based on standard one.

attilahogyai commented 8 years ago

Thank you for quick fix and advise!

kefirfromperm commented 8 years ago

Resolved in version 1.3