Over a million developers have joined DZone.

Sanitize INPUTs

·
//sanitize INPUTs


function sanitize($s) {
    return htmlspecialchars($s, ENT_NOQUOTES, "UTF-8");
}
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}