- function htmlEncode(value) {
- var encodedValue = $('<div />').text(value).html();
- return encodedValue;
- }
Can someone please clarify this to me?
If seems in first step it select all closed <div /> tags in the page (what???!!!) then it set its text to value (what???!!!) and in final step it return html markup of <div /> + value. (WHAT????!!!!!!!!!!)
It doesn't make any sense.
Computer Enterprise Masoud Keshavarz
For more information contact
masoudk1990@yahoo.com