fixx escape

This commit is contained in:
yasirarism 2023-05-22 15:25:33 +00:00 committed by GitHub
parent f5889bbfea
commit c6c61cd5ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,4 @@
import html
import re
import traceback
import chevron
@ -96,7 +97,7 @@ async def byPassPh(url: str, name: str):
telegraph = Telegraph()
if not telegraph.get_access_token():
await telegraph.create_account(short_name=BOT_USERNAME)
page = await telegraph.create_page(f"{kusonime.get('title')} By {escape(name)}", html_content=html)
page = await telegraph.create_page(f"{kusonime.get('title')} By {html.escape(name)}", html_content=html)
results.update({"error": False, "url": "https://telegra.ph/{}".format(page["path"])})
del results["error_message"]
return results