You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Harbor provides a global configuration for setting a banner message, which is useful for displaying important notices to users, especially for maintenance.
One of our use-cases requires adding links to these messages to direct our users to more information. However, since BannerMessage is an HTML-safe string, it does not support HTML tags, making it difficult to include links.
I am looking for advice on how to achieve this.
One approach is to use an HTML sanitizer (such as bluemonday) and allow only a few tags (for eg. <a>). However, this would introduce an additional dependency, and I'm unsure if Harbor would be open to including it. The alternative would be handling sanitization ourselves, which isn’t ideal either. Does anyone have other suggestions?
I’d also like to hear the community’s opinion on adding this feature.
The text was updated successfully, but these errors were encountered:
Description
Harbor provides a global configuration for setting a banner message, which is useful for displaying important notices to users, especially for maintenance.
One of our use-cases requires adding links to these messages to direct our users to more information. However, since BannerMessage is an HTML-safe string, it does not support HTML tags, making it difficult to include links.
I am looking for advice on how to achieve this.
One approach is to use an HTML sanitizer (such as bluemonday) and allow only a few tags (for eg. <a>). However, this would introduce an additional dependency, and I'm unsure if Harbor would be open to including it. The alternative would be handling sanitization ourselves, which isn’t ideal either. Does anyone have other suggestions?
I’d also like to hear the community’s opinion on adding this feature.
The text was updated successfully, but these errors were encountered: