RE: [EXT] Re: HTML encoder

Philippe Demaecker <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.vwnc
Message-ID <AM9PR05MB87190357A667F1C2EAFE3A7A87539@AM9PR05MB8719.eurprd05.prod.outlook.com>
Thanks a lot guys,

I’ll look into it.

Best regards,
Phil

From: [email protected] <[email protected]>
Sent: Wednesday, January 12, 2022 9:32 PM
To: Karsten Kusche <[email protected]>
Cc: Stephen Pope <[email protected]>; Philippe Demaecker <[email protected]>; [email protected]
Subject: [EXT] Re: [vwnc] HTML encoder


Warning: This is an external email. Do not click on links or open attachments unless you recognize the sender and know the content is safe.

I have code for an ancient HTMLWriter with the following credits.

<st-source>
<time-stamp>From VisualWorks® Personal Use Edition, 7.9.1 of October 18, 2012 on May 7, 2020 at 5:00:52 PM</time-stamp>


<class>
<name>HtmlWriter</name>
<environment>Heeg</environment>
<super>Heeg.RtfWriter</super>
<private>false</private>
<indexed-type>none</indexed-type>
<inst-vars>wasSansSerif </inst-vars>
<class-inst-vars></class-inst-vars>
<imports></imports>
<category>GH-Utilities</category>
<attributes>
<package>ComposedTextEditor</package>
</attributes>
</class>


--

                    Stephen Travis Pope   Ojai, California, USA
 [cid:[email protected]]          https://urldefense.com/v3/__http://HeavenEverywhere.com__;!!DZ3fjg!uiZXH2ZHtObL-NtFeduxygq28oK0fmgBldjhvwXZ6R3Eo4Rb2n50CalEt5t7alEV8tgupEg$ <https://urldefense.com/v3/__http:/HeavenEverywhere.com__;!!DZ3fjg!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYeKpc4ocs$>        https://urldefense.com/v3/__http://FASTLabInc.com__;!!DZ3fjg!uiZXH2ZHtObL-NtFeduxygq28oK0fmgBldjhvwXZ6R3Eo4Rb2n50CalEt5t7alEV4US5OKU$ <https://urldefense.com/v3/__http:/FASTLabInc.com__;!!DZ3fjg!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYesby7xy4$>
                       https://urldefense.com/v3/__https://vimeo.com/user19434036/videos__;!!DZ3fjg!uiZXH2ZHtObL-NtFeduxygq28oK0fmgBldjhvwXZ6R3Eo4Rb2n50CalEt5t7alEVpzpL3Vw$ <https://urldefense.com/v3/__https:/vimeo.com/user19434036/videos__;!!DZ3fjg!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYetajy_J4$>      https://urldefense.com/v3/__http://heaveneverywhere.com/Reflections__;!!DZ3fjg!uiZXH2ZHtObL-NtFeduxygq28oK0fmgBldjhvwXZ6R3Eo4Rb2n50CalEt5t7alEVRfr0BJQ$ <https://urldefense.com/v3/__http:/heaveneverywhere.com/Reflections__;!!DZ3fjg!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYeCOSMCcc$>

--






On Jan 12, 2022, at 10:33 AM, Karsten Kusche <[email protected]<mailto:[email protected]>> wrote:

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<x-apple-data-detectors://0/0>

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!uiZXH2ZHtObL-NtFeduxygq28oK0fmgBldjhvwXZ6R3Eo4Rb2n50CalEt5t7alEVJY2p-Zg$ <https://urldefense.com/v3/__http:/heaveneverywhere.com__;!!DZ3fjg!vKcEBDSVqlKRByA2_4aspJKbbySDz3kvKutSMb85qNpdp9KAVI2RqetKBCZpDwlOd1p4ldk$>



-------- Original message --------
From: Philippe Demaecker <[email protected]<mailto:[email protected]>>
Date: 1/12/22 3:16 AM (GMT-08:00)
To: [email protected]<mailto:[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: &lt;script&gt;alert&lpar;1&rpar;&lt;&sol;script&gt;

(Or: https://urldefense.com/v3/__https://gchq.github.io/CyberChef/*recipe=To_HTML_Entity(false,'Named*20entities')&input=PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg__;IyU!!DZ3fjg!uiZXH2ZHtObL-NtFeduxygq28oK0fmgBldjhvwXZ6R3Eo4Rb2n50CalEt5t7alEVryvs9to$ <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
image001.png (image/png, 1.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.