runelite-client/src/main/java/net/runelite/client/util/Text.java
/**
	 * Removes all tags from the given `str`.
	 *
	 * @param str The string to remove tags from.
	 * @return The given `str` with all tags removed from it.
	 */
Removes all tags from the given `str`.
@param str The string to remove tags from.
@return The given `str` with all tags removed from it.
Removes all tags from the given ` str ` . @param str The string to remove tags from . @return The given ` str ` with all tags removed from it .
public static String removeTags(String str)
	{
		StringBuilder builder = new StringBuilder(str.length());
		boolean inTag = false;
		for (int i = 0; i < str.length(); i++)
		{
			char currentChar = str.charAt(i);
			if (currentChar == '<')
			{
				inTag = true;
			}
			else if (currentChar == '>')
			{
				inTag = false;
			}
			else if (!inTag)
			{
				builder.append(currentChar);
			}
		}
		return builder.toString();
	}
public static String removeTags ( String str ) { StringBuilder builder = new StringBuilder ( str . length ( ) ) ; boolean inTag = false ; for ( int i = 0 ; i < str . length ( ) ; i ++ ) { char currentChar = str . charAt ( i ) ; if ( currentChar == '<' ) { inTag = true ; } else if ( currentChar == '>' ) { inTag = false ; } else if ( ! inTag ) { builder . append ( currentChar ) ; } } return builder . toString ( ) ; }
Removes all tags from the given `str`.
Removes all tags from the given ` str ` .