I believe support for these escape sequences has been removed in python 3.12, but these warnings can be easily fixed by converting these strings into raw strings. If you are happy to make this change ...
Convert the characters &, < and > in string s to HTML-safe sequences. Use this if you need to display text that might contain such characters in HTML. If the optional flag quote is true, the ...