1
Reply

How to bind the html format file into array using javascript

Gowtham Rajamanickam

Gowtham Rajamanickam

Jun 22 2015 7:00 AM
455
i have to pass the html content value into array without formatting issue.
EventDescription =Multiline of text fild(Enhanced rich text);
i have an array eventDets[]. and im passing the all item value into this array.I have retrived the EventDescription field value and its a html content here im removing the special characters but when im inserting the item i need html content.
 
is it simple using innerhtml.but array how to pass the inner html 
 
item.EventDescription= item.EventDescription.replace(/[^A-Za-z ]/g, '');
eventDets.push(item);

Answers (1)