Skip to the content
Documentation

Wash only & quotes < > signs with htmlspecialchars

No ratings yet

Can you tell me why the wash function uses htmlspecialchars php function instead of htmlentities php function in order to wash ALL the bogus characters for a good HTML result ?

Comments (1 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: Wash only & quotes < > signs with htmlspecialchars

    Anonymous coward ·

    You don't need htmlentities if you use correct charset. htmlspecialchars are to produce w3c-valid html.