§
    ; i  ã                  ó6   — d Z ddlmZ ddlmZ ddlmZ dd
„ZdS )zUtilities for generating HTML.é    )Úannotations)ÚElementTree)Ú	sheets_idÚurlúsheets_id.SheetsURLÚtextÚstrÚreturnc                ó”   — 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   ÚElementr	   r   Útostring)r   r   Útags      ú/var/www/development/aibuddy-work/election-extract/venv/lib/python3.11/site-packages/google/generativeai/notebook/html_utils.pyÚget_anchor_tagr      se   € õ Ô
Øð ð Ý˜‘H”Hð
ð 
ð
ñ 
ô 
€Cð Ð'ˆtˆt €C„HÝÔ ¨iÀÐGÑGÔGÐGó    N)r   r   r   r	   r
   r	   )Ú__doc__Ú
__future__r   Ú	xml.etreer   Úgoogle.generativeai.notebookr   r   © r   r   ú<module>r#      sg   ðð %Ð $Ø "Ð "Ð "Ð "Ð "Ð "à !Ð !Ð !Ð !Ð !Ð !Ø 2Ð 2Ð 2Ð 2Ð 2Ð 2ðHð Hð Hð Hð Hð Hr   