Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix action token sending for chracters that are escaped in html
The function body of escape is ``` def escape(s): """Replace the characters ``&``, ``<``, ``>``, ``'``, and ``"`` in the string with HTML-safe sequences. Use this if you need to display text that might contain such characters in HTML. If the object has an ``__html__`` method, it is called and the return value is assumed to already be safe for HTML. :param s: An object to be converted to a string and escaped. :return: A :class:`Markup` string with the escaped text. """ if hasattr(s, "__html__"): return Markup(s.__html__()) return Markup( text_type(s) .replace("&", "&") .replace(">", ">") .replace("<", "<") .replace("'", "'") .replace('"', """) ) ``` It doesn't make sense to lookup the replaced values in the database, and it breaks single-quotes in the email username portion, which is valid https://en.wikipedia.org/wiki/Email_address#Syntax
- Loading branch information