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:
@@ -652,3 +652,10 @@ function addAnchorsToHeaders(html) {
|
||||
});
|
||||
return tree.html();
|
||||
}
|
||||
|
||||
function HTMLescape(html){
|
||||
return document.createElement('div')
|
||||
.appendChild(document.createTextNode(html))
|
||||
.parentNode
|
||||
.innerHTML;
|
||||
}
|
||||
|
Reference in New Issue
Block a user