GUI-489: Prevent long tag names from breaking autoscale tag editor (copied from standard tag editor), and escape unsafe content in tag preview.