Java String Sanitize sanitizeBrowserName(String browserName)

Here you can find the source of sanitizeBrowserName(String browserName)

Description

sanitize Browser Name

License

LGPL

Declaration

private static String sanitizeBrowserName(String browserName) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    private static String sanitizeBrowserName(String browserName) {
        browserName = browserName.toLowerCase();

        // if browser name is 'mobile safari' return 'safari'
        browserName = browserName.replace("mobile", "").trim();
        return browserName;
    }// w w  w  .ja v a2  s .c om
}

Related

  1. sanitize(String text)
  2. sanitize(String value)
  3. sanitizeAppAlias(String appAlias)
  4. sanitizeAttribute(String value)
  5. sanitizeBranchName(String currentBranch)
  6. sanitizeChatMessage(String message)
  7. sanitizeClassname(String classname)
  8. sanitizeClassName(String s)
  9. sanitizeColumn(String colName, String relationName)