Skip to content

Commit

Permalink
fix outf so it does not eat < or >
Browse files Browse the repository at this point in the history
  • Loading branch information
bnmnetp committed Mar 5, 2013
1 parent 91f2721 commit bdb8045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/static/env/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ $(document).ready(function() {
var output = $('#edoutput');
var outf = function(text)
{
output.html(output.text() + text.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\n/g, "<br/>"));
output.text(output.text() + text);
};
Sk.configure({output:outf, read:builtinRead});
if (e.ctrlKey)
Expand Down

0 comments on commit bdb8045

Please sign in to comment.