GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CGIESCAPE (3)

NAME

cgiEscape - HTML escape certain characters in a string

CONTENTS

Synopsys
Description

SYNOPSYS


#include <cgi.h> 

char *cgiEscape (char *string);

DESCRIPTION

This function returns a pointer to a sanitised string. It converts <, & and > into HTML entities so that the result can be displayed without any danger of cross-site scripting in a browser. The result may be passed to free(3) after use. This routine is meant to be called before any user provided strings are returned to the browser.

RETURN VALUE

cgiEscape() returns a pointer to the sanitised string or NULL in case of error.

AUTHOR

This CGi library is written by Martin Schulze <joey@infodrom.org>. If you have additions or improvements please get in touch with him.

SEE ALSO

free(3).

Search for    or go to Top of page |  Section 3 |  Main Index


CGI Library CGIDEBUG (3) 6 April 2008

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.