Skip to content

Normal "quotes" are not escaped #159

@dereuromark

Description

@dereuromark

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 &quot;&lt;b&gt;demo&lt;/b&gt;&quot; string

with >/</" escaped

But with this BBCode parser the " remain it seems:

Some "&lt;b&gt;demo&lt;/b&gt;" 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions