@Deprecated public final class HtmlEncoder extends Object
String
to the HTML-format of a String.
To convert the String
, each character is examined:
Example:
String htmlPresentation = HtmlEncoder.encode("Marie-Thérèse Sørensen");
for more info: see O'Reilly; "HTML: The Definitive Guide" (page 164)
Modifier and Type | Method and Description |
---|---|
static String |
encode(BaseColor color)
Deprecated.
Converts a BaseColor into a HTML representation of this BaseColor .
|
static String |
encode(String string)
Deprecated.
Converts a String to the HTML-format of this String .
|
static String |
getAlignment(int alignment)
Deprecated.
Translates the alignment value.
|
static boolean |
isNewLineTag(String tag)
Deprecated.
Returns true if the tag causes a new line like p, br etc.
|
public static String encode(String string)
String
to the HTML-format of this String
.
string
- The String
to convert
String
public static String encode(BaseColor color)
BaseColor
into a HTML representation of this BaseColor
.
color
- the BaseColor
that has to be converted.
public static String getAlignment(int alignment)
alignment
- the alignment value
public static boolean isNewLineTag(String tag)
Copyright © 1998–2022. All rights reserved.