| Versionen | |
|---|---|
| drupal6 – drupal7 | check_plain($text) |
Encode special characters in a plain-text string for display as HTML.
Uses drupal_validate_utf8 to prevent cross site scripting attacks on Internet Explorer 6.
includes/
<?php
function check_plain($text) {
return drupal_validate_utf8($text) ? htmlspecialchars($text, ENT_QUOTES) : '';
}
?>
Kommentare
Kommentar hinzufügen