ZMObject
└─ZMToolboxTool
└─ZMToolboxHtml
public class ZMToolboxHtml
extends ZMToolboxTool
| Fields inherited from org.zenmagick.toolbox.ZMToolboxTool | |
|---|---|
| request_, toolbox_ | |
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| string | encode(string s, boolean echo) Encode a given string to valid HTML. |
| string | more(string s, int max, string more, boolean echo) Truncate text. |
| string | text2html(string s) Convert text based user input into HTML. |
| Methods inherited from org.zenmagick.toolbox.ZMToolboxTool | |
|---|---|
| getRequest, getToolbox, setRequest, setToolbox | |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public string encode(string s, boolean echo)
Encode a given string to valid HTML.
true, the escaped string will be echo'ed as well as returned; default is true.public string more(string s, int max, string more, boolean echo)
Truncate text.
true, the escaped string will be echo'ed as well as returned; default is true.public string text2html(string s)
Convert text based user input into HTML.
HTML utilities.