
    rh                    4    d Z ddlmZ ddlmZ ddlmZ ddZy)zUtilities for generating HTML.    )annotations)ElementTree)	sheets_idc                    t        j                  dddt        |       d      }|r|nd|_        t        j                  |dd	      S )
a  Returns a HTML string representing an anchor tag.

    This class uses the xml.etree library to handle HTML escaping.

    Args:
      url: The Sheets URL to link to.
      text: The text body of the link.

    Returns:
      A string representing a HTML fragment.
    a_blanknoopener)targetrelhref)attriblinkunicodehtml)encodingmethod)r   Elementstrtexttostring)urlr   tags      z/var/www/html/ai-insurance-compliance-backend/venv/lib/python3.12/site-packages/google/generativeai/notebook/html_utils.pyget_anchor_tagr      sO     

  H

C tCHiGG    N)r   zsheets_id.SheetsURLr   r   returnr   )__doc__
__future__r   	xml.etreer   google.generativeai.notebookr   r    r   r   <module>r"      s    % " ! 2Hr   