& and characters with ASCII"> & and characters with ASCII" />
Easy Tutorial
❮ Func Mysqli Fetch Field Php Db Odbc ❯

PHP FILTER_SANITIZE_SPECIAL_CHARS Filter



Definition and Usage

The FILTER_SANITIZE_SPECIAL_CHARS filter escapes special characters in HTML.

This filter is used to escape "<>& and characters with ASCII values below 32.

Possible flags:


Example

The browser output of the above code is as follows:

If you view the source code in the browser, you will see the following HTML:


❮ Func Mysqli Fetch Field Php Db Odbc ❯