[Solved] Removing html tags in from a string in android [closed]


I use this function this way,

public String removeTags(String in)
    {
        int index=0;
        int index2=0;
        while(index!=-1)
        {
            index = in.indexOf("<");
            index2 = in.indexOf(">", index);
            if(index!=-1 && index2!=-1)
            {
                in = in.substring(0, index).concat(in.substring(index2+1, in.length()));
            }
        }
        return in;
    }

I tried to do that with the function replaceAll() using regular experssion, but never had a good way.

solved Removing html tags in from a string in android [closed]