Back to index

php5  5.3.10
html.h
Go to the documentation of this file.
00001 /* 
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Author: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                        |
00016    +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: html.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef HTML_H
00022 #define HTML_H
00023 
00024 #define ENT_HTML_QUOTE_NONE        0
00025 #define ENT_HTML_QUOTE_SINGLE      1
00026 #define ENT_HTML_QUOTE_DOUBLE      2
00027 #define ENT_HTML_IGNORE_ERRORS     4
00028 
00029 #define ENT_COMPAT    ENT_HTML_QUOTE_DOUBLE
00030 #define ENT_QUOTES    (ENT_HTML_QUOTE_DOUBLE | ENT_HTML_QUOTE_SINGLE)
00031 #define ENT_NOQUOTES  ENT_HTML_QUOTE_NONE
00032 #define ENT_IGNORE    ENT_HTML_IGNORE_ERRORS
00033 
00034 void register_html_constants(INIT_FUNC_ARGS);
00035 
00036 PHP_FUNCTION(htmlspecialchars);
00037 PHP_FUNCTION(htmlentities);
00038 PHP_FUNCTION(htmlspecialchars_decode);
00039 PHP_FUNCTION(html_entity_decode);
00040 PHP_FUNCTION(get_html_translation_table);
00041 
00042 PHPAPI char *php_escape_html_entities(unsigned char *old, int oldlen, int *newlen, int all, int quote_style, char *hint_charset TSRMLS_DC);
00043 PHPAPI char *php_escape_html_entities_ex(unsigned char *old, int oldlen, int *newlen, int all, int quote_style, char *hint_charset, zend_bool double_encode TSRMLS_DC);
00044 PHPAPI char *php_unescape_html_entities(unsigned char *old, int oldlen, int *newlen, int all, int quote_style, char *hint_charset TSRMLS_DC);
00045 
00046 #endif /* HTML_H */