Class EscapeTool
java.lang.Object
org.owasp.dependencycheck.reporting.EscapeTool
An extremely simple wrapper around various escape utils to perform URL and
HTML encoding within the reports. This class was created to simplify the
velocity configuration and avoid using the "built-in" escape tool.
- Author:
- Jeremy Long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFormats text for CSV format.csvCpeConfidence(Set<Identifier> ids) Takes a set of Identifiers, filters them to just CPEs, and formats them for confidence display in a CSV.csvIdentifiers(Set<Identifier> ids) Takes a set of Identifiers, filters them to none CPE, and formats them for display in a CSV.HTML Encodes the provided text.javascript(String text) JavaScript encodes the provided text.JSON Encodes the provided text.URL Encodes the provided text.XML Encodes the provided text.
-
Constructor Details
-
EscapeTool
public EscapeTool()
-
-
Method Details
-
url
-
html
-
html
-
xml
-
xml
-
json
-
json
-
javascript
-
csv
-
csvIdentifiers
Takes a set of Identifiers, filters them to none CPE, and formats them for display in a CSV.- Parameters:
ids- the set of identifiers- Returns:
- the formatted list of none CPE identifiers
-
csvCpeConfidence
Takes a set of Identifiers, filters them to just CPEs, and formats them for confidence display in a CSV.- Parameters:
ids- the set of identifiers- Returns:
- the formatted list of confidence
-