I have stored a c++ code snipet in javascript variable like this:-
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="Assets/lib/jquery-1.11.1.min.js"></script>
<title>JSP Page</title>
<script>
var s = "#include<iostream.h>#include<conio.h>";
$(document).ready(function(){
$("#btn").click(function(){
document.getElementById("text").innerHTML = s;
});
});
</script>
</head>
<body>
<button id="btn">show</button>
<h1><p id="text"></p></h1>
</body>
</html>
on the JSP page when I click the button it prints only "#include#include". It is not printing the whole thing as i assign to the variable s.
So, my question is, How I can print the things between the "<>" angle brackets.