from markupsafe import escape def run(): string = "Hello World!" + "x" * 100000 escape(string)