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? Quote 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? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/163995-html-and-whitespace/#findComment-865139 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.