$sanitizer


Properties and Methods

$sanitizer->text($value)

Introduced in Version 2.0

Description

Sanitize a single line of input text. Removes tags, removes newline characters, and truncates length to 1024 characters. This is multibyte safe if your PHP has multibyte support.


Comments

  • Posted by Art Armstrong on Apr 13, 2015 3:13 PM

    This also calls 'trim()' when returning so it clears whitespace.

Post Comment