Jump to content

store html in a variable in javascript.


jonniejoejonson

Recommended Posts

Thanks for the response, but i think i have solved it... I was trying to loop through a php array and convert it into javascript array. When i was looping through the php array, if it had quotes in it, then it would break, therefore by using php addslashes function it appears to solve the problem.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.