Gowtham Rajamanickam

Gowtham Rajamanickam

  • 74
  • 25.8k
  • 7.4m

How to bind the html format file into array using javascript

Jun 22 2015 7:00 AM
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)