I'm trying to use jquery to alert the php code in my webpage but it only alert the html source using .html(),i also try replacing the "<" use in opening a php so that the browser will not render it but it is not work.
I found out this work in .html file but not in .php file,so how can i do that
<script>
$(function(){
alert($("body").html().replace(/</g,"<"));
});
</script>
I found out this work in .html file but not in .php file,so how can i do that
<script>
$(function(){
alert($("body").html().replace(/</g,"<"));
});
</script>
Comment