document.getElementById("menu").innerHTML='
- some text
- some text
- some text
- some text
- some text
- some text
';
All I really did was switch the quotes to single quotes so the HTML attributes don't mess the string up. If you did need to put single quotes in the innerHtml string, you can escape them with backslash, ie: innerHtml = ' Don\'t break me';