public class EscapeChars extends Object
Constructor and Description |
---|
EscapeChars() |
Modifier and Type | Method and Description |
---|---|
static String |
forFormSubmission(String str)
Escapes strings with application/x-www-form-urlencoded encoding.
|
static String |
forScriptTag(String string)
Escapes content so that it can be safely embedded in a <script> tag in HTML5.
|
static String |
forUnixShell(String s)
Escapes a command line element (argument or command name) so that it's treated as a single token if written
to a script file directly.
|
static String |
forUrl(String string)
Escapes strings with URL percent encoding.
|
static String |
forURL(String queryString)
Deprecated.
since 5.11 use
forUrl(String) or forFormSubmission(String) |
@Deprecated public static String forURL(String queryString)
forUrl(String)
or forFormSubmission(String)
queryString
- The string that need to be escapedpublic static String forFormSubmission(String str)
@NotNull public static String forUnixShell(@NotNull String s)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.