• Unai Zalakain's avatar
    Fixed #7261 -- support for __html__ for library interoperability · af64429b
    Unai Zalakain yazdı
    The idea is that if an object implements __html__ which returns a string this is
    used as HTML representation (eg: on escaping). If the object is a str or unicode
    subclass and returns itself the object is a safe string type.
    
    This is an updated patch based on jbalogh and ivank patches.
    af64429b
test_safestring.py 1.96 KB