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