Skip to content

Commit

Permalink
remove unnecessary <script> replacement - encoding instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
caphun committed Jun 27, 2011
1 parent 46cd349 commit 3da351d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.inlineedit.js
Expand Up @@ -218,7 +218,7 @@ $.inlineEdit.prototype = {
return '<textarea>'+ value.replace(/<br\s?\/?>/g,"\n") +'</textarea>' + this.buttonHtml( { before: '<br />' } );
},
input: function( value ) {
return '<input type="text" value="'+ value.replace(/(\u0022)+|<\/?script.*>/g, '') +'">' + this.buttonHtml();
return '<input type="text" value="'+ value.replace(/(\u0022)+/g, '') +'">' + this.buttonHtml();
}
},

Expand Down

0 comments on commit 3da351d

Please sign in to comment.