@Override
	public void setText(String text) {

		// do not pass <html> up to the parent so that it does not install its own html rendering
		if (text != null && text.toLowerCase().startsWith(HTML_TAG)) {
			text = text.substring(HTML_TAG.length());
			isHtml = true;
		}
		else {
			isHtml = false;
		}

		super.setText(text);

		updateHtmlView();
	}
Base class for labels that render html using a custom rendering kit.
<p>
This implementation uses custom html rendering.  This custom rendering allows for basic
formatting while eliminating potentially unsafe html tags.  If for some reason this custom
rendering is deficient, clients can instead use a standard Java {@link JLabel}.
<p>
Clients do not need to prefix label text with "&lt;html&gt;", as is required for a standard
JLabel.
Ghidra/Framework/Docking/src/main/java/docking/widgets/label/AbstractHtmlLabel.java