Files
doc
java
resources
scripts
tomcatconf
webapp
META-INF
WEB-INF
css
database
images
javascript
instructor
DOMXSS.js
DOMXSS_backup.js
clientSideFiltering.js
clientSideValidation.js
escape.js
eval.js
javascript.js
lessonNav.js
makeWindow.js
menu_system.js
sameOrigin.js
toggle.js
lesson_plans
lesson_solutions
lessons
users
main.jsp
reportBug.jsp
sideWindow.jsp
webgoat.jsp
webgoat_challenge.jsp
README.txt
build.xml
pom.xml
webgoat for SQL Server.bat
webgoat.bat
webgoat.sh
webgoat_8080.bat
webscarab.bat
WebGoat/webapp/javascript/escape.js

7 lines
175 B
JavaScript

function escapeHTML (str) {
var div = document.createElement('div');
var text = document.createTextNode(str);
div.appendChild(text);
return div.innerHTML;
}