private static String removeEscapeChars(String text) {
		boolean escaped = false;
		StringBuilder buffy = new StringBuilder();
		for (int i = 0; i < text.length(); i++) {
			char c = text.charAt(i);
			boolean wasEscaped = escaped;
			escaped = false;
			if (c != '\\') {
				buffy.append(c);
				continue;
			}

			char next = '\0';
			if (i != text.length() - 1 && !wasEscaped) {
				next = text.charAt(i + 1);
			}

			if (ESCAPABLE_CHARS.indexOf(next) != -1) {
				escaped = true;
				continue;
			}
			buffy.append(c);
		}

		return buffy.toString();
	}
Constructor
<b>Note</b>: This constructor assumes that the string starts with "{<pre>@</pre>" and ends with '}'

@param annotationText The complete annotation text.
text this Annotation can create
@param program the program
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/Annotation.java