Forums Register Login

Escape Html

+Pie Number of slices to send: Send
Eric put together a handy way to escape html 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: https://coderanch.com/t/121937/HTML-JavaScript/html-escaper


CategoryJForum
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


You can read but need at least 5 cow(s) to post
This thread has been viewed 1248 times.
Similar Threads
JavaScript in URL not working
creating a text box if the option is "other" from the drop down by javascript
How to make a count down of Characters in a textbox?
Open in New Window from selected item in list box
How to get generated ID of the JSF componenet dynamically in the JavaScript?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:43:46.