- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeComment.js
More file actions
Latest commit
8 lines (8 loc) · 454 Bytes
/
Copy pathcodeComment.js
File metadata and controls
8 lines (8 loc) · 454 Bytes
1
2
3
4
5
6
7
8
$(document).ready(function(){
//We are replacing "<" "</" "/>" ">" with their entities only between <code> tags
$("code").each(function(){
varstr=$(this).html()//Here we are getting code as it is left after replacing more difficult tags in php
str=str.replace(/</g,"<").replace(">",">").replace("</","</").replace("/>","/>")
$(this).html(str)//Here we return our changed comment. Enjoy :D
})
})