Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/django/utils/__pycache__/safestring.cpython-312.pyc

34 lines
3.0 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
j<> i<><00><00>r<00>dZddlmZddlmZGd<04>d<05>ZGd<06>dee<05>ZeZd<08>Z ee<07>d <09><00>Z
y
) a8
Functions for working with "safe strings": strings that can be displayed safely
without further escaping in HTML. Marking something as a "safe string" means
that the producer of the string has already turned characters that should not
be interpreted by the HTML engine (e.g. '<') into the appropriate entities.
<EFBFBD><00><01>wraps)<01> keep_lazyc<00><00>eZdZdZd<02>Zy)<04>SafeData<74>c<00><00>|S)z<>
Return the html representation of a string for interoperability.
This allows other template engines to understand Django's SafeData.
r<00><01>selfs <20>FE:\Project\pygoedge\.venv\Lib\site-packages\django/utils/safestring.py<70>__html__zSafeData.__html__s <00><00> <14> <0B>N)<05>__name__<5F>
__module__<EFBFBD> __qualname__<5F> __slots__r rrr rr s <00><00><12>I<EFBFBD>rrc<00>,<00><00>eZdZdZdZ<04>fd<03>Zd<04>Z<06>xZS)<05>
SafeStringzb
A str subclass that has been specifically marked as "safe" for HTML output
purposes.
rc<00><><00><01>t|t<00>r,t<00>|<00> |<01>}t|t<00>r t |<02>}|St S)z<>
Concatenating a safe string with another safe bytestring or
safe string is safe. Otherwise, the result is no longer safe.
)<07>
isinstance<EFBFBD>str<74>super<65>__add__rr<00>NotImplemented)r <00>rhs<68>t<> __class__s <20>r rzSafeString.__add__!s=<00><><00>
<16>c<EFBFBD>3<EFBFBD> <1F><15><07><0F><03>$<24>A<EFBFBD><19>#<23>x<EFBFBD>(<28><1E>q<EFBFBD>M<EFBFBD><01><14>H<EFBFBD>
<1E>rc<00><00>|S<00>Nrr
s r <00>__str__zSafeString.__str__1s<00><00><13> r)rrr<00>__doc__rrr <00> __classcell__)rs@r rrs<00><><00><08>
<13>I<EFBFBD><1E> rrc<00>2<00><00><01>t<00><01><00><01>fd<01><08>}|S)Nc<00> <00><02><00><00>|i|<01><01><01>Srr)<04>args<67>kwargs<67>func<6E> safety_markers <20><>r <00>wrapperz"_safety_decorator.<locals>.wrapper9s<00><><00><1C>T<EFBFBD>4<EFBFBD>2<>6<EFBFBD>2<>3<>3rr)r(r'r)s`` r <00>_safety_decoratorr*8s <00><><00>
<EFBFBD>4<EFBFBD>[<5B>4<><11>4<> <13>Nrc<00>j<00>t|d<01>r|St|<00>rtt|<00>St |<00>S)a 
Explicitly mark a string as safe for (HTML) output purposes. The returned
object can be used everywhere a string is appropriate.
If used on a method as a decorator, mark the returned data as safe.
Can be called multiple times on a single string.
r )<05>hasattr<74>callabler*<00> mark_safer)<01>ss r r.r.@s1<00><00><0F>q<EFBFBD>*<2A><1D><10><08><0F><01>{<7B> <20><19>A<EFBFBD>.<2E>.<2E> <15>a<EFBFBD>=<3D>rN) r!<00> functoolsr<00>django.utils.functionalrrrr<00>SafeTextr*r.rrr <00><module>r3sO<00><01><04><1C>-<2D> <14> <14><14><13>h<EFBFBD><14>8 <16><08><13> <0B>:<3A><16> <19><17> r