JavaRanch Home
 
Front Page FAQs Ranchers Categories Recent Changes To Do Upload

Escape Html   



Eric put together a handy way to EscapeHtml? for posting in the forums.

javascript:var elem = document.forms[0].message;elem.value = elem.value.replace(/on/gi,"on").replace(/mouse/gi,"mouse").replace(/>/gi,">").replace(/</gi,"<");void(0);

You can either copy paste this into the address bar or create a bookmarklet (a bookmark with this JavaScript? as the source.)

Source: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=20&t=016518

Front Page FAQs Ranchers Categories Recent Changes To Do Upload
Last Edited: 04 May 2008 What's Changed?
 
Copyright © 1998-2008 Paul Wheaton | Home | Contact Us | Privacy | Register