OwlCyberSecurity - MANAGER
Edit File: __init__.cpython-312.pyc
� Z��g�3 � �D � d dl mZ d dlmZ d dlZd dlZ ddlm Z ej rd dl Z G d� dej � Z G d� dej � Zdd �Zdd�Zdd�Z G d � d e� Z G d� dej. � Z G d� d� Zdd�Zy# e $ r ddlm Z Y ��w xY w)� )�annotationsN� )� _escape_innerc � � e Zd Zdd�Zy)�_HasHTMLc � � y �N� ��selfs �D/opt/hc_python/lib64/python3.12/site-packages/markupsafe/__init__.py�__html__z_HasHTML.__html__ s � �#� N��return�str)�__name__� __module__�__qualname__r r r r r r s � �%r r c � � e Zd Zdd�Zy)� _TPEscapec � � y r r )r �ss r �__call__z_TPEscape.__call__ s � �sr N�r �t.Anyr �Markup)r r r r r r r r r s � �2r r r c �� � t | � t u rt t | � � S t | d� rt | j � � S t t t | � � � S )a� Replace the characters ``&``, ``<``, ``>``, ``'``, and ``"`` in the string with HTML-safe sequences. Use this if you need to display text that might contain such characters in HTML. If the object has an ``__html__`` method, it is called and the return value is assumed to already be safe for HTML. :param s: An object to be converted to a string and escaped. :return: A :class:`Markup` string with the escaped text. r )�typer r r �hasattrr �r s r �escaper"