|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.module.AbstractQuercusModule
com.caucho.quercus.lib.HtmlModule
public class HtmlModule
PHP functions implementing html code.
Field Summary | |
---|---|
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
|
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER |
Constructor Summary | |
---|---|
HtmlModule()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public HtmlModule()
Method Detail |
---|
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 style
public 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 style
public 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 style
public static Value nl2br(Env env, StringValue string)
env
- the calling environment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |