Hi I copied and pasted your code in my text.aspx file syntax is given below, and it worked fine when I wright the whole statment
var test = '<p>rajnas asdjhsadnmdas dasjads bnas</p><p>ahdndsa</p>';
in a single line, but if i write below line
<p>ahdndsa</p>';
in new line then only its giving unterminated string constant error .
so try to put (var test) value in a single line as in below code . Hope it will do.
<script>
function aa()
{
var test = '<p>rajnas asdjhsadnmdas dasjads bnas</p><p>ahdndsa</p>';
document.getElementById('education').innerHTML = test;
}
</script>
<body>
<a href="#" onclick="aa()">click</a>
<div id="education">
</div>
</body>
[Edit]Code block added[/Edit]