beb596d6144e0deb9ce96c5955c71e6d5f4eaec9
braney
  Sat Sep 26 13:01:02 2026 -0700
trackHub: add an hg.conf switch for hub description page handling, refs #38126

hubHtmlSanitizeOn() in trackHub.c reads the hg.conf setting hubHtmlSanitize,
default off, and the description page code in lib and cgilib asks it.  With
the setting off, that code behaves as it did in v503.  hubCheck follows the
same setting.

diff --git src/hg/inc/trackHub.h src/hg/inc/trackHub.h
index 31e502f548e..5f3df0b94d1 100644
--- src/hg/inc/trackHub.h
+++ src/hg/inc/trackHub.h
@@ -250,17 +250,21 @@
 
 struct grp *readGroupRa(char *groupFileName);
 /* Read in the ra file that describes the groups in an assembly hub. */
 
 struct trackDb *trackHubAddTracksGenome(struct trackHubGenome *hubGenome);
 /* Load up stuff from data hub and return list. */
 
 boolean trackHubIsValidSeqName(char *name);
 /* Return TRUE if name is a valid sequence name: non-empty, starts with a
  * letter or digit, and contains only [A-Za-z0-9._-]. */
 
 boolean trackHubBigNetEnabled();
 /* Return TRUE if the bigNet track type is turned on.  Off unless hg.conf says
  * bigNet=on.  Everything that accepts or advertises the type asks this. */
 
+boolean hubHtmlSanitizeOn();
+/* Return TRUE if description HTML from hubs and custom tracks goes through htmlSanitize.
+ * Off unless hg.conf says hubHtmlSanitize=on. */
+
 #endif /* TRACKHUB_H */