All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.ahtutils.jsf.functions.PrettyUrl Maven / Gradle / Ivy

There is a newer version: 0.2.5
Show newest version
package net.sf.ahtutils.jsf.functions;

public final class PrettyUrl
{
    private PrettyUrl() { }
    
    public static String prettyUrl(String input)
    {
    	input=input.replace(" ", "-");
    	input=input.replace("----", "-");
    	input=input.replace("---", "-");
    	input=input.replace("-", "-");
    	input=input.replace(":-", ":");
    	input=input.replace("ä", "ae");
    	input=input.replace("ö", "oe");
    	input=input.replace("ü", "ue");
        return input;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy