TheFilmGod Posted June 28, 2009 Share Posted June 28, 2009 var text = ' <tr class="days"> <th>S</th> <th>M</th> <th>T</th> <th>W</th> <th>T</th> <th>F</th> <th>S</th> </tr>'; doesn't seem to work? Why not? Link to comment https://forums.phpfreaks.com/topic/163995-html-and-whitespace/ Share on other sites More sharing options...
dzelenika Posted June 28, 2009 Share Posted June 28, 2009 How do you mean doesn't work? What is happening? Link to comment https://forums.phpfreaks.com/topic/163995-html-and-whitespace/#findComment-865133 Share on other sites More sharing options...
corbin Posted June 28, 2009 Share Posted June 28, 2009 You must escape new lines in JS variables because of the way parsing works...... var x = "this\ is\ multiple\ lines."; It's weird, but it's how it parses. Link to comment https://forums.phpfreaks.com/topic/163995-html-and-whitespace/#findComment-865139 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.