Changeset 3706
- Timestamp:
- 07/09/07 22:14:32 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Plug-Ins/Web Interface/Resources/iphone/iphone.js
r3703 r3706 14 14 { 15 15 return this.className.indexOf(className) !== -1; 16 } 17 18 String.prototype.escapeHTML = function() 19 { 20 return this.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"); 16 21 } 17 22 … … 516 521 517 522 DirectChatPanel.prototype.send = function() { 518 this.sendMessage(this.panelInputElement.value );523 this.sendMessage(this.panelInputElement.value.escapeHTML()); 519 524 520 525 this.panelInputElement.focus();
