1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-07 16:32:39 +02:00
TableFilter/static/partials/pre-inline-script.html

9 lines
291 B
HTML
Raw Normal View History

2015-06-08 12:21:50 +02:00
<script>
var config = document.querySelectorAll('script[data-config]')[0];
var pre = document.body.getElementsByTagName('pre')[0];
if(pre && config){
pre.innerHTML = config.innerHTML
.replace('<', '&lt;').replace('>', '&gt;');
}
</script>