RGL browser: escape html when printing code (by using .text() instead of .html())

This commit is contained in:
john.j.camilleri
2013-05-24 09:41:01 +00:00
parent 87eb018d3a
commit 03f5f02577
2 changed files with 10 additions and 10 deletions

View File

@@ -98,7 +98,7 @@
<br style="clear:both" />
</div>
<footer id="footer">
John J. Camilleri<br/><em>Updated 2013-04-03</em>
John J. Camilleri<br/><em>Updated 2013-05-24</em>
</footer>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="jquery.history.min.js"></script>

View File

@@ -98,7 +98,7 @@ $(document).ready(function() {
}
}
var setCode = function(code) {
$('#code pre').html(code);
$('#code pre').text(code);
prettyPrint();
}
var updateScopeCount = function(){