From 3681bf0f8d1c88807dcc0f2e5344eaafe0105973 Mon Sep 17 00:00:00 2001 From: Nischay mrzn <129774293+Nischaymrzn@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:09:33 +0545 Subject: [PATCH] Create escape_html.py --- Python/escape_html.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Python/escape_html.py diff --git a/Python/escape_html.py b/Python/escape_html.py new file mode 100644 index 0000000..373e376 --- /dev/null +++ b/Python/escape_html.py @@ -0,0 +1,2 @@ +def escape_html(text): + return text.replace("&", "&").replace("<", "<").replace(">", ">")