mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-01 15:22:50 -06:00
RGL browser: escape html when printing code (by using .text() instead of .html())
This commit is contained in:
@@ -98,7 +98,7 @@
|
|||||||
<br style="clear:both" />
|
<br style="clear:both" />
|
||||||
</div>
|
</div>
|
||||||
<footer id="footer">
|
<footer id="footer">
|
||||||
John J. Camilleri<br/><em>Updated 2013-04-03</em>
|
John J. Camilleri<br/><em>Updated 2013-05-24</em>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
||||||
<script src="jquery.history.min.js"></script>
|
<script src="jquery.history.min.js"></script>
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var setCode = function(code) {
|
var setCode = function(code) {
|
||||||
$('#code pre').html(code);
|
$('#code pre').text(code);
|
||||||
prettyPrint();
|
prettyPrint();
|
||||||
}
|
}
|
||||||
var updateScopeCount = function(){
|
var updateScopeCount = function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user