check_plain

Definition

check_plain($text)
includes/bootstrap.inc, line 628

Description

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

Code

<?php
function check_plain($text) {
  return htmlspecialchars($text, ENT_QUOTES);
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.