Class CleanResults

java.lang.Object
org.owasp.validator.html.CleanResults

public class CleanResults extends Object
This class contains the results of a scan. The list of error messages (errorMessages) will let the user know what, if any HTML errors existed, and what, if any, security or validation-related errors existed, and what was done about them.
Author:
Arshan Dabirsiaghi
  • Constructor Details

  • Method Details

    • getCleanXMLDocumentFragment

      public DocumentFragment getCleanXMLDocumentFragment()
    • getCleanHTML

      public String getCleanHTML()
      Return the filtered HTML as a String.
      Returns:
      A String object which contains the serialized, safe HTML.
    • getErrorMessages

      public List<String> getErrorMessages()
      Return a list of error messages.
      Returns:
      An ArrayList object which contain the error messages after a scan.
    • getScanTime

      public double getScanTime()
      Return the time elapsed during the scan.
      Returns:
      A double primitive indicating the amount of time elapsed between the beginning and end of the scan in seconds.
    • getNumberOfErrors

      public int getNumberOfErrors()
      Return the number of errors encountered during filtering.