|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.util.HtmlKit
public class HtmlKit
Encodes text strings into HTML.
| Field Summary | |
|---|---|
static int |
NEWLINE_REMOVE
|
static int |
NEWLINE_TO_BR
|
static int |
NEWLINE_TO_SPACE
|
static int |
NEWLINE_TRANSPARENT
|
| Method Summary | |
|---|---|
static String |
encode(String text)
Encodes a string of text into HTML by replacing less than, greater than, ampersand, and quotation mark characters with their HTML escaped equivalents. |
static String |
encode(String text,
int newLinePolicy)
Encodes a string of text into HTML by replacing less than, greater than, ampersand, and quotation mark characters with their HTML escaped equivalents. |
static Node[] |
encodeNewLines(Document document,
String text,
int newLinePolicy)
Encodes a string of text into DOM Nodes by taking new lines and replacing them aoccording to the policy provided. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NEWLINE_REMOVE
public static final int NEWLINE_TO_BR
public static final int NEWLINE_TO_SPACE
public static final int NEWLINE_TRANSPARENT
| Method Detail |
|---|
public static String encode(String text)
text - The text to be encoded into HTML.
public static String encode(String text,
int newLinePolicy)
text - The text to be encoded into HTML.newLinePolicy - The policy for handling newline characters, one of the
following values:
public static Node[] encodeNewLines(Document document,
String text,
int newLinePolicy)
text - The text to be encoded into DOM Nodes.newLinePolicy - The policy for handling newline characters, one of the
following values:
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||