public class EscapeUtils extends Object
Constructor and Description |
---|
EscapeUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
escapeJson(String text)
Escapes Strings in a JSON structure
|
static String |
escapeJsonOrRaw(String text) |
static String |
escapeRaw(String text)
Escapes any text using the same rules as
escapeJson() does |
public static String escapeJson(String text) throws IOException
text
- IOException
- if failed (when text is not not JSON)public static String escapeRaw(String text)
escapeJson() does
text
- Copyright © 2018 Hitachi Vantara. All rights reserved.