Class XSSApi

java.lang.Object
org.jenkinsci.plugins.github.util.XSSApi

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class XSSApi extends Object
Author:
lanwen (Merkushev Kirill)
  • Method Details

    • asValidHref

      public static String asValidHref(String urlString)
      Method to filter invalid url for XSS. This url can be inserted to href safely
      Parameters:
      urlString - unsafe url
      Returns:
      safe url