Just create a bookmark with the following as the link (only for Mozilla):
Once you have typed in or pasted code into a form somewhere on a <em>Mozilla page<⁄em>, clicking on this link will encode the elements on the form. The way it stands, it should encode < , >, \ and / It can be modified to encode everything in the ascii alphabet. Have fun and let me know how it works out for you!
As per an email question from SouthernGal , I realize that I should have mentioned the way around Mozilla to actually make this a bookmarklet. So here goes…
Under Bookmarks toolbar in Mozilla, click on manage bookmarks and then
Call it whatever name you want and copy and paste everything from http://dinki.mine.nu/weblog/b2-img/bookmarklet.txt into the “Location” area of the new bookmark. Once done, click OK. Now drag this newly created bookmark from the “Bookmarks folder” into the personal toolbar folder (all inside of Bookmark manager), thus creating the bookmarklet. Move it around on your personal toolbar to situate it correctly. All done!
This bookmarklet does not even need highlighting of your code to encode, it encodes everything inside of forms, simply click on it when you need encoding.