HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/setroubleshoot/__pycache__/html_util.cpython-39.pyc
a

U+e�@sRgd�ZddlZddlZddlmZGdd�de�Zdd�Zdd	�Zd
dd�ZdS))�escape_html�
unescape_html�html_to_text�N)�
HTMLParserc@seZdZdd�Zdd�ZdS)�
HTMLFiltercCst�|�d|_dS)N�)r�__init__�text)�self�r�</usr/lib/python3.9/site-packages/setroubleshoot/html_util.pyr"s
zHTMLFilter.__init__cCs|j|7_dS)N)r	)r
�datarrr�handle_data&szHTMLFilter.handle_dataN)�__name__�
__module__�__qualname__rrrrrrr!srcCsL|durdS|�dd�}|�dd�}|�dd�}|�dd�}|�d	d
�}|S)N�&�&amp;�<�&lt;�>�&gt;�'�&apos;�"�&quot;��replace��srrrr+srcCsX|durdSd|vr|S|�dd�}|�dd�}|�dd�}|�dd	�}|�d
d�}|S)Nrrrrrrrrrrrrrrrr6sr�Pc
Cs`z"t�}|�|�tj|j|d�WStyZ}z t�tjd|�WYd}~dSd}~00dS)N)�widthzcannot convert html to text: %s)rZfeed�textwrap�fillr	�	Exception�syslogZLOG_ERR)ZhtmlZmaxcolZhfilter�errrrCs
r)r )	�__all__r%r"Zhtml.parserrrrrrrrrr�<module>s