1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +00:00

[repo_create, 'details' view] escape some strings

This commit is contained in:
llj
2014-04-27 11:51:22 +08:00
parent 9c53e59ee0
commit 85acd95e14
3 changed files with 10 additions and 3 deletions

View File

@@ -652,3 +652,10 @@ function addAnchorsToHeaders(html) {
});
return tree.html();
}
function HTMLescape(html){
return document.createElement('div')
.appendChild(document.createTextNode(html))
.parentNode
.innerHTML;
}