icat.utils#

Utility functions that are needed in multiple places.

Functions

add_highlights(text, regex[, color])

Adds HTML span tag highlights around any matches in the text for the given regex.

populate_anchor_from_dictionary(anchor, ...)

Assign anchor's parameters from a dictionary containing the key value pairs.