Re: HTML encoder

"[email protected]" <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.vwnc
Message-ID <[email protected]>
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    
          https://urldefense.com/v3/__http://HeavenEverywhere.com__;!!DZ3fjg!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYeKpc4ocs$  <https://urldefense.com/v3/__http://heaveneverywhere.com/__;!!DZ3fjg!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYe2_42o00$ >        https://urldefense.com/v3/__http://FASTLabInc.com__;!!DZ3fjg!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYesby7xy4$  <https://urldefense.com/v3/__http://fastlabinc.com/__;!!DZ3fjg!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYec-Zi6os$ >
                       https://urldefense.com/v3/__https://vimeo.com/user19434036/videos__;!!DZ3fjg!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYetajy_J4$  <https://urldefense.com/v3/__https://vimeo.com/user19434036/videos__;!!DZ3fjg!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYetajy_J4$ >      https://urldefense.com/v3/__http://heaveneverywhere.com/Reflections__;!!DZ3fjg!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYeCOSMCcc$ 

--




> On Jan 12, 2022, at 10:33 AM, Karsten Kusche <[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
> 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!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYeYIe87SM$  <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: &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!u5aHz2BOG6QogpesPN6W_7bZtI0qeTNq22TKK1bAT9v5NR0U3gMoI9_TBWeVgnYewuQ1n1w$  <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
>>
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.