Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

apostrophe issue in javascript

var name = "Joe O'Neal";
var safe_name = escapeHtml(name);

var row= [];
row.push(
    "<td><input type='hidden' name='milestones[" + id + "].Name' 
    value='" + safe_name + "' class='currentRowName'  />
    <span class='currentRowNameText'>" + safe_name + "</span></td>");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #apostrophe #issue #javascript
ADD COMMENT
Topic
Name
8+6 =