I have large HTML to be generated dynamically through javascript so the reason i dont want it be in a single line
I was trying it as this way but getting Uncaught SyntaxError: Unexpected token ILLEGAL under browser console
for(var i=0;i<response.length;i++)
{
divhtml.append('<li>
<h6>'+response[i].RestaurantName+'</h6>\n
<p>'+response[i].Locality+'</p>\n
</li>');
}
Please see this fiddle