I have noticed that velocity response writer templates do not run JavaScript codes in SOLR anymore.
Although all html and css codes are rendered, the javascript code below is not executed and display "Result" at browser,
<p id="demo">Result</p>
<script>
document.getElementById("demo").innerHTML = 5 + 6;
</script>
However if you display the same page, rendered by velocity responser writer in Solr, through a php file, the javascript code is executed as expected and "11" is displayed at browser.
Is it due to security vulnerability I have heard couple of years ago? Is there a work around so that I can use velocity templates in Solr that executes JavaScript codes? Or is it only me having this problem.
Thanks for the replies in advance.