RE: HTML encoder
Karsten Kusche <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.vwnc |
|---|---|
| Message-ID | <[email protected]> |
Hi Stephen, I think we include a package to speed up XML parsing and this package improves resolving entities, but it doesn’t do the other way around. Kind regards Karsten — Georg Heeg eK Wallstraße 22 06366 Köthen<x-apple-data-detectors://0/0> Tel.: 03496/214328<tel:03496/214328> FAX: 03496/214712<tel:03496/214712> Amtsgericht Dortmund HRA 12812 Am 12. Januar 2022 um 18:12:10, Stephen Travis Pope ([email protected]<mailto:[email protected]>) schrieb: I believe Georg Heeg had code for this in his "goodies" collection, but that was a while back. stp -------- Stephen Travis Pope - Ojai, CA, USA https://urldefense.com/v3/__http://heaveneverywhere.com__;!!DZ3fjg!p4D1wjfO6wW7WrgQPHwj3teunntyG62l7T-M8eEC0rpQBGcBokiSR_Inoo5G-6Ntm1Ye8e8$ <https://urldefense.com/v3/__http://heaveneverywhere.com__;!!DZ3fjg!vKcEBDSVqlKRByA2_4aspJKbbySDz3kvKutSMb85qNpdp9KAVI2RqetKBCZpDwlOd1p4ldk$> -------- 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!p4D1wjfO6wW7WrgQPHwj3teunntyG62l7T-M8eEC0rpQBGcBokiSR_Inoo5G-6Nt8QR-Aos$ <https://urldefense.com/v3/__https://gchq.github.io/CyberChef/*recipe=To_HTML_Entity(false,'Named*20entities')&input=PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg__;IyU!!DZ3fjg!u449TzBNRX-iDgMuIVq_ZiHgLMU3o2OLQSszE_VyPPrTzx72g5mbpe0JIfRqtNoq2fr3ME0$>) I searched the code and list, but no luck. Any ideas? Thanks, Phil