52cee2eff9e953d4584a415b8a9b84bd2326d3cd
braney
  Tue Aug 18 11:14:37 2026 -0700
hgTables: encode track menu and schema text consistently, refs #38123

diff --git src/hg/hgTables/hgTables.h src/hg/hgTables/hgTables.h
index 661de7c4b1c..07c7d919dd2 100644
--- src/hg/hgTables/hgTables.h
+++ src/hg/hgTables/hgTables.h
@@ -40,30 +40,33 @@
 extern struct trackDb *curTrack;	/* Currently selected track. */
 extern struct grp *fullGroupList;	/* List of all groups. */
 extern struct grp *curGroup;	/* Currently selected group. */
 extern struct customTrack *theCtList;	/* List of custom tracks. */
 extern char *curTable;	/* Current selected table. */
 extern struct joiner *allJoiner;	/* Info on how to join tables. */
 
 #define GALAXY_URL_BASE "https://usegalaxy.org"
 #define GALAXY_URL_APP GALAXY_URL_BASE "/tool_runner"
 
 /* --------------- HTML Helpers ----------------- */
 
 void hPrintSpaces(int count);
 /* Print a number of non-breaking spaces. */
 
+char *hubEncode(struct trackDb *tdb, char *text);
+/* Return text escaped for HTML if it belongs to a track hub, otherwise return it unchanged. */
+
 void writeHtmlCell(char *text);
 /* Write out a cell in an HTML table, making text not too big,
  * and stripping html tags and breaking spaces.... */
 
 void htmlOpen(char *format, ...)
 /* Start up a page that will be in html format. */
 #if defined(__GNUC__)
 __attribute__((format(printf, 1, 2)))
 #endif
 ;
 
 void htmlClose();
 /* Close down html format page. */
 
 void textOpen();