Skip to content

$myts->htmlSpecialChars() with htmlspecialchars() #869

@mambax7

Description

@mambax7

Should we replace all simple calls to $myts->htmlSpecialChars(), e.g.

$myts->htmlSpecialChars($name)

where there are no extra parameters in the call, with something like:

htmlspecialchars($name, ENT_QUOTES | ENT_HTML5);

It saves time, as $myts->htmlSpecialChars() ends up with sending the text to htmlspecialchars() anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions