import html


def HTMLEscape(text):
  """HTML-escape all entries in a given translation dict.

  Args:
    text: The translation dict to be HTML-escaped.

  Returns:
    The new translation dict with all values HTML-escaped.
  """
  return {locale: html.escape(value, quote=False)
          for locale, value in text.items()}