private String getPreview(CodeUnit cu, boolean htmlFriendly) {
		String preview = getFormatedCodeUnitPreview(cu);
		if (preview == null || preview.length() == 0) {
			preview = "??";
		}

		if (htmlFriendly) {
			if (preview.length() > MAX_LINE_LENGTH) {
				preview = preview.substring(0, MAX_LINE_LENGTH);
			}

			preview = HTMLUtilities.friendlyEncodeHTML(preview);
		}

		return preview;
	}
Constructor

@param location the location for the preview
@param codeUnitFormat the format needed to render preview data
Ghidra/Features/Base/src/main/java/ghidra/util/table/PreviewTableCellData.java