Escape encoding HTML code in Python

From , 2 Years ago, written in Python, viewed 215 times.
URL https://pastebin.vip/view/eded0708
  1. import cgi
  2.  
  3. s1 = "Hello <strong>world</strong>"
  4. s2 = cgi.escape(s1)
  5.  
  6. assert s2 == "Hello <strong>world</strong>"

Reply to "Escape encoding HTML code in Python"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website