diff options
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r-- | includes/bootstrap.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 9d3e44cd0..2a0f7e52d 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -708,8 +708,14 @@ function arg($index) { } /** + * Encode special characters in a plain-text string for display as HTML. + */ +function check_plain($text) { + return htmlspecialchars($text, ENT_QUOTES); +} + +/** * Prepare a URL for use in an HTML attribute. Strips harmful protocols. - * */ function check_url($uri) { $uri = htmlspecialchars($uri, ENT_QUOTES); |