@ThreadSafe public class EscapeTool extends Object
| Constructor and Description |
|---|
EscapeTool() |
| Modifier and Type | Method and Description |
|---|---|
String |
csv(String text)
Formats text for CSV format.
|
String |
csvCpeConfidence(Set<Identifier> ids)
Takes a set of Identifiers, filters them to just CPEs, and formats them
for confidence display in a CSV.
|
String |
csvIdentifiers(Set<Identifier> ids)
Takes a set of Identifiers, filters them to none CPE, and formats them
for display in a CSV.
|
String |
html(String text)
HTML Encodes the provided text.
|
String |
javascript(String text)
JavaScript encodes the provided text.
|
String |
json(String text)
JSON Encodes the provided text.
|
String |
url(String text)
URL Encodes the provided text.
|
String |
xml(String text)
XML Encodes the provided text.
|
public String url(String text)
text - the text to encodepublic String html(String text)
text - the text to encodepublic String xml(String text)
text - the text to encodepublic String json(String text)
text - the text to encodepublic String javascript(String text)
text - the text to encodepublic String csv(String text)
text - the text to escape and quotepublic String csvIdentifiers(Set<Identifier> ids)
ids - the set of identifierspublic String csvCpeConfidence(Set<Identifier> ids)
ids - the set of identifiersCopyright © 2012–2020 OWASP. All rights reserved.