\check_plain
function
Encodes special characters in a plain-text string for display as HTML.

Encodes special characters in a plain-text string for display as HTML.

Also validates strings as UTF-8 to prevent cross site scripting attacks on Internet Explorer 6.

Comments

Chi’s picture

This function was moved to String utility component.
https://www.drupal.org/node/2302363

ranelpadon’s picture