public static boolean isURI(String tagName,String attrName){
  return (attrName.equalsIgnoreCase("href") || attrName.equalsIgnoreCase("src"));
}

public static boolean isURI ( String tagName , String attrName ) { return ( attrName . equalsIgnoreCase ( "href" ) || attrName . equalsIgnoreCase ( "src" ) ) ; }
returns true if the specified attribute it a uri and should be escaped appropriately . in html uris are escaped differently than normal attributes .
