entities auto fix added

This commit is contained in:
karimsa 2013-01-06 00:11:32 -05:00
parent 68f8c9361e
commit d4d9c4bfab
2 changed files with 7 additions and 2 deletions

View File

@ -492,8 +492,13 @@ var Reveal = (function(){
var node = nodes[i];
if( node.textContent && !node.querySelector( 'img' ) && ( !node.className || !node.classList.contains( node, 'roll' ) ) ) {
var span = document.createElement('span');
span.setAttribute('data-title', node.text);
span.innerHTML = node.innerHTML;
node.classList.add( 'roll' );
node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
node.innerHTML = '';
node.appendChild(span);
}
}
}

2
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long