public class HtmlModule extends AbstractQuercusModule
Modifier and Type | Field and Description |
---|---|
static int |
ENT_COMPAT |
static int |
ENT_HTML_QUOTE_DOUBLE |
static int |
ENT_HTML_QUOTE_NONE |
static int |
ENT_HTML_QUOTE_SINGLE |
static int |
ENT_NOQUOTES |
static int |
ENT_QUOTES |
static int |
HTML_ENTITIES |
static int |
HTML_SPECIALCHARS |
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
HtmlModule() |
Modifier and Type | Method and Description |
---|---|
Value |
get_html_translation_table(Env env,
int table,
int quoteStyle)
Returns HTML translation tables.
|
static StringValue |
html_entity_decode(Env env,
StringValue string,
int quoteStyle,
java.lang.String charset)
Escapes HTML
|
static Value |
htmlentities(Env env,
StringValue string,
int quoteStyle,
java.lang.String charset)
Escapes HTML
|
static StringValue |
htmlspecialchars_decode(Env env,
StringValue str,
int quoteStyle)
Converts escaped HTML entities back to characters.
|
static Value |
htmlspecialchars(Env env,
StringValue string,
int quoteStyle,
java.lang.String charset,
boolean isDoubleEncode)
Escapes HTML
|
static Value |
nl2br(Env env,
StringValue string)
Replaces newlines with HTML breaks.
|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions
public static final int HTML_SPECIALCHARS
public static final int HTML_ENTITIES
public static final int ENT_HTML_QUOTE_NONE
public static final int ENT_HTML_QUOTE_SINGLE
public static final int ENT_HTML_QUOTE_DOUBLE
public static final int ENT_COMPAT
public static final int ENT_QUOTES
public static final int ENT_NOQUOTES
public Value get_html_translation_table(Env env, int table, int quoteStyle)
public static StringValue htmlspecialchars_decode(Env env, StringValue str, int quoteStyle)
str
- escaped stringquoteStyle
- optional quote style usedpublic static Value htmlspecialchars(Env env, StringValue string, int quoteStyle, java.lang.String charset, boolean isDoubleEncode)
env
- the calling environmentstring
- the string to be trimmedquoteStyleV
- optional quote stylecharsetV
- optional charset stylepublic static Value htmlentities(Env env, StringValue string, int quoteStyle, java.lang.String charset)
env
- the calling environmentstringV
- the string to be trimmedquoteStyleV
- optional quote stylecharsetV
- optional charset stylepublic static StringValue html_entity_decode(Env env, StringValue string, int quoteStyle, java.lang.String charset)
string
- the string to be trimmedquoteStyle
- optional quote stylecharset
- optional charset stylepublic static Value nl2br(Env env, StringValue string)
env
- the calling environment