|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.util.PlainTextToHtmlConverter
public class PlainTextToHtmlConverter
Static methods for the conversion of text to HTML.
Constructor Summary | |
---|---|
PlainTextToHtmlConverter()
|
Method Summary | |
---|---|
static java.lang.String[] |
encodeHtmlEntities(java.lang.Object... items)
Encodes the angle brackets, ampersands, and quotation marks in all the input items as HTML entities. |
static java.lang.String[] |
encodeHtmlEntities(java.lang.String... items)
Encodes the angle brackets, ampersands, and quotation marks in all the input items as HTML entities. |
static java.lang.String |
encodeHtmlEntities(java.lang.String text)
Encodes the angle brackets, ampersands, and quotation marks in the input as HTML entities. |
static java.lang.String |
matchAndReplaceSpaces(java.lang.String html)
|
static java.lang.String |
toHtml(java.lang.String plainText)
The function converts plain text into html in two steps. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlainTextToHtmlConverter()
Method Detail |
---|
public static java.lang.String toHtml(java.lang.String plainText)
plainText
- the text to encode
public static java.lang.String[] encodeHtmlEntities(java.lang.Object... items)
String.valueOf(java.lang.Object)
.
items
- objects to convert to strings and encode
public static java.lang.String[] encodeHtmlEntities(java.lang.String... items)
items
- strings to encode
public static java.lang.String encodeHtmlEntities(java.lang.String text)
text
- string to encode
public static java.lang.String matchAndReplaceSpaces(java.lang.String html)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |