cgiEscape man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

cgiDebug(3)		      Programmer's Manual		   cgiDebug(3)

NAME
       cgiEscape - HTML escape certain characters in a string

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).

CGI Library			 6 April 2008			   cgiDebug(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net