Not sure if thats a problem for normal use cases, but using HTML escaping
or h() in CakePHP
you get
Some "<b>demo</b>" string
transformed into
Some "<b>demo</b>" string
with >/</" escaped
But with this BBCode parser the " remain it seems:
Some "<b>demo</b>" string
Depending on where those chars appear it could break some layouts maybe. But not sure.
I tried to first escape h($text) before adding it into the converter, but then the tags needing " characters to work wont parse anymore.
Not sure if thats a problem for normal use cases, but using HTML escaping
or h() in CakePHP
you get
transformed into
with
>/</"escapedBut with this BBCode parser the " remain it seems:
Depending on where those chars appear it could break some layouts maybe. But not sure.
I tried to first escape h($text) before adding it into the converter, but then the tags needing " characters to work wont parse anymore.