Skip to content

Commit

Permalink
Moved my code to auto escape html to the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
cfjedimaster committed May 1, 2013
1 parent 0441c26 commit b649c19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 0 additions & 12 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,18 +235,6 @@ var Reveal = (function(){
dom.controlsNext = toArray( document.querySelectorAll( '.navigate-next' ) );
}

//Auto scape code blocks
var cblocks = document.querySelectorAll("pre code");

if(cblocks.length) {
for(var i=0, len=cblocks.length; i<len; i++) {
var thisDom = cblocks[i];
var html = thisDom.innerHTML;
html = html.replace(/</g,"&lt;").replace(/>/g,"&gt;");
thisDom.innerHTML = html;
}
}

}

/**
Expand Down
3 changes: 3 additions & 0 deletions plugin/highlight/highlight.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b649c19

Please sign in to comment.