RE: HTML encoder
Stephen Travis Pope <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.vwnc |
|---|---|
| Message-ID | <[email protected]> |
I believe Georg Heeg had code for this in his "goodies" collection, but that was a while back.stp--------Stephen Travis Pope - Ojai, CA, USAhttp://heaveneverywhere.com -------- Original message --------From: Philippe Demaecker <[email protected]> Date: 1/12/22 3:16 AM (GMT-08:00) To: [email protected] Subject: [vwnc] HTML encoder Hi list, I’m looking for a piece of code that will convert a string to its HTML encoded equivalent. Input: <script>alert(1)</script> Ouput: <script>alert(1)</script> (Or: https://urldefense.com/v3/__https://gchq.github.io/CyberChef/*recipe=To_HTML_Entity(false,'Named*20entities')&input=PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg__;IyU!!DZ3fjg!vKcEBDSVqlKRByA2_4aspJKbbySDz3kvKutSMb85qNpdp9KAVI2RqetKBCZpDwlOD8O1pbc$ ) I searched the code and list, but no luck. Any ideas? Thanks, Phil