-
-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
escape function does not return Markup class for instances implementing __html__ method #68
Comments
Hi @mila , @davidism , I'm new to this project and would like your help. I see the documentation for New-Style String Formatting explicitly return a >>> escape(Foo())
'<strong>Nice</strong>'
>>> Markup(Foo())
Markup(u'<strong>Nice</strong>') |
Ok I believe |
@dawran6 This is a very good question. I decided to return On the other side I perceive the |
Thanks @mila for the response. I agree with you. |
fixed in #69 |
The
escape
function does not wrap a return value of__html__
method asMarkup
.Expected behaviour documented in
README.rst
:Actual behaviour:
I am using the 1.0 version I get same result for both native and speedups implementations.
The text was updated successfully, but these errors were encountered: