public class StringEscapeUtils
extends java.lang.Object
Constructor and Description |
---|
StringEscapeUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escapeNewlines(java.lang.String str)
Escapes new line characters of a given string.
|
static java.lang.String |
unescapeNewlines(java.lang.String str)
Inverse function to
escapeNewlines |
public static java.lang.String escapeNewlines(java.lang.String str)
str
- string to be escapedpublic static java.lang.String unescapeNewlines(java.lang.String str)
escapeNewlines
str
- escaped string