#include "php.h"
#include <php_config.h>
#include "php_standard.h"
#include "SAPI.h"
#include <locale.h>
#include <zend_hash.h>
#include "html_tables.h"
Go to the source code of this file.
|
PHPAPI unsigned int | php_next_utf8_char (const unsigned char *str, size_t str_len, size_t *cursor, zend_result *status) |
|
PHPAPI zend_string * | php_unescape_html_entities (zend_string *str, int all, int flags, const char *hint_charset) |
|
PHPAPI zend_string * | php_escape_html_entities (const unsigned char *old, size_t oldlen, int all, int flags, const char *hint_charset) |
|
PHPAPI zend_string * | php_escape_html_entities_ex (const unsigned char *old, size_t oldlen, int all, int flags, const char *hint_charset, bool double_encode, bool quiet) |
|
| PHP_FUNCTION (htmlspecialchars) |
|
| PHP_FUNCTION (htmlspecialchars_decode) |
|
| PHP_FUNCTION (html_entity_decode) |
|
| PHP_FUNCTION (htmlentities) |
|
| PHP_FUNCTION (get_html_translation_table) |
|
◆ CHECK_LEN
Value:((str_len - (
pos)) >= (chars_need))
unsigned const char * pos
Definition at line 62 of file html.c.
◆ gb2312_lead
Value:((c) != 0x8E && (c) != 0x8F && (c) != 0xA0 && (c) != 0xFF)
Definition at line 71 of file html.c.
◆ gb2312_trail
Value:((c) >= 0xA1 && (c) <= 0xFE)
Definition at line 72 of file html.c.
◆ LIMIT_ALL
Value: do { \
} while (0)
#define CHARSET_PARTIAL_SUPPORT(cs)
enum entity_charset charset
#define ENT_HTML_DOC_XML1
Definition at line 52 of file html.c.
◆ MB_FAILURE
Value: do { \
*cursor =
pos + (advance); \
return 0; \
} while (0)
Definition at line 56 of file html.c.
◆ sjis_lead
Value:((c) != 0x80 && (c) != 0xA0 && (c) < 0xFD)
Definition at line 74 of file html.c.
◆ sjis_trail
Value:((c) >= 0x40 && (c) != 0x7F && (c) < 0xFD)
Definition at line 75 of file html.c.
◆ TRAVERSE_FOR_ENTITIES_EXPAND_SIZE
#define TRAVERSE_FOR_ENTITIES_EXPAND_SIZE |
( |
| oldlen | ) |
|
Value:((oldlen) + (oldlen) / 5 + 2)
Definition at line 814 of file html.c.
◆ utf8_lead
Value:((c) < 0x80 || ((c) >= 0xC2 && (c) <= 0xF4))
Definition at line 65 of file html.c.
◆ utf8_trail
Value:((c) >= 0x80 && (c) <= 0xBF)
Definition at line 69 of file html.c.
◆ php_escape_html_entities()
PHPAPI zend_string * php_escape_html_entities |
( |
const unsigned char * | old, |
|
|
size_t | oldlen, |
|
|
int | all, |
|
|
int | flags, |
|
|
const char * | hint_charset ) |
◆ php_escape_html_entities_ex()
PHPAPI zend_string * php_escape_html_entities_ex |
( |
const unsigned char * | old, |
|
|
size_t | oldlen, |
|
|
int | all, |
|
|
int | flags, |
|
|
const char * | hint_charset, |
|
|
bool | double_encode, |
|
|
bool | quiet ) |
◆ PHP_FUNCTION() [1/5]
◆ PHP_FUNCTION() [2/5]
◆ PHP_FUNCTION() [3/5]
◆ PHP_FUNCTION() [4/5]
◆ PHP_FUNCTION() [5/5]
◆ php_next_utf8_char()
PHPAPI unsigned int php_next_utf8_char |
( |
const unsigned char * | str, |
|
|
size_t | str_len, |
|
|
size_t * | cursor, |
|
|
zend_result * | status ) |
◆ php_unescape_html_entities()