Created
June 11, 2014 08:26
-
-
Save amdgigabyte/2333ad6ca0c5fa609454 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="KISSY XTemplate Test" /> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<script src="http://g.tbcdn.cn/kissy/k/1.4.3/seed.js"></script> | |
</head> | |
<body> | |
<script> | |
KISSY.use('xtemplate', function (S, XTemplate) { | |
window.supportEscapeHtml = function () { | |
var tpl = 'my {{title}} is {{{title}}}'; | |
var data = { | |
title: '<a>' | |
}; | |
var render = new XTemplate(tpl).render(data); | |
alert(render); | |
}; | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment