public static String toLiteralHTMLForTooltip(String text) {

		if (text.length() > MAX_TOOLTIP_LENGTH) {
			text = text.substring(0, MAX_TOOLTIP_LENGTH) + "...";
		}

		String html =
			toHTMLWithLineWrappingAndEncoding(text, DEFAULT_TOOLTIP_MAX_LINE_LENGTH, false);
		return html;
	}
A very specific method that will:
<ol>
	<li>
	Make sure the HTML length is clipped to a reasonable size
 </li>
 <li>
 <b>Escape any embedded HTML</b> (so that it is not interpreted as HTML)
 </li>
 <li>
 Put the entire result in HTML
 </li>
</ol>

@param text the text to convert
@return the converted value.
Ghidra/Framework/Gui/src/main/java/ghidra/util/HTMLUtilities.java