Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
safe text to html
#11
(Jul-06-2017, 04:29 PM)nilamo Wrote:
(Jul-06-2017, 02:48 AM)Skaperen Wrote: s = s.replace('>','&gt')

Html entities all end with a semicolon.  :)
yes they do ... a typo bug on my part ... thanks for pointing at it

... fixed in the code!
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  make eval() safe Skaperen 5 2,615 Mar-24-2022, 05:47 PM
Last Post: Skaperen
  is this string shell quote safe? Skaperen 2 2,094 Feb-18-2020, 12:56 AM
Last Post: Skaperen
  after py2 EOL, is it safe to repoint python? Skaperen 6 3,226 Sep-14-2019, 10:37 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020