Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
ji / @ s d Z ddlZddlZyddlmZ W n ek
rD ddlmZ Y nX ddlmZ ddl m
Z
ddl mZmZ ddl m
Z
mZ ye W n ek
r eZY nX ye W n ek
r eZY nX ye W n ek
r eZY nX ye W n ek
r
eefZY nX dd d
ddd
dgZejdejejB jZejdejjZejdejjZejdejj Z!ejdejj Z"ejdejj Z#dd Z$ejdjZ%ejdejejB Z&ej'dZ(ej'ddeidZ)G dd
d
e*Z+e+ Z,e,j-Z-ejdejejdejgZ.d d!d"d#d$d%gZ/ejd&ejejd'ejejd(gZ0d)gZ1e.e/e0e1fd*dZ2d+d, Z3d-d Z4e2j e4_ d!d d"gZ5d.gZ6d/e5e6ed0fd1d
Z7d2d Z8d3d4 Z9ejd5ejZ:d6d7 Z;dS )8zcA cleanup tool for HTML.
Removes unwanted tags and content. See the `Cleaner` class for
details.
N)urlsplit)etree)defs)
fromstringXHTML_NAMESPACE)
xhtml_to_html_transform_result
clean_htmlcleanCleanerautolink
autolink_html
word_breakword_break_htmlzexpression\s*\(.*?\)z
@\s*importz?[a-zA-Z]+|\son[a-zA-Z]+\s*=z^data:image/(.+);base64,z:(javascript|jscript|livescript|vbscript|data|about|mocha):z (xml|svg)c C s: d}x t | D ]}d}t|rdS qW |r.dS tt| S )NFT)_find_image_dataurls_is_unsafe_image_typebool_is_possibly_malicious_scheme)sZis_image_urlZ
image_type r /usr/lib64/python3.6/clean.py_is_javascript_schemeT s r z[\s\x00-\x08\x0B\x0C\x0E-\x19]+z\[if[\s\n\r]+.*?][\s\n\r]*>zdescendant-or-self::*[@style]zdescendant-or-self::a [normalize-space(@href) and substring(normalize-space(@href),1,1) != '#'] |descendant-or-self::x:a[normalize-space(@href) and substring(normalize-space(@href),1,1) != '#']x)Z
namespacesc @ s e Zd ZdZdZdZdZdZdZdZ dZ
dZdZdZ
dZdZdZdZdZdZdZdZejZdZf ZeddgZdd Zed d
ddgd d d d
d
Zdd Zdd Z dd Z!dd Z"dd Z#d!ddZ$dd Z%e&j'de&j(j)Z*dd Z+dd Z,dS )"r a
Instances cleans the document of each of the possible offending
elements. The cleaning is controlled by attributes; you can
override attributes in a subclass, or set them in the constructor.
``scripts``:
Removes any ``