Created
June 21, 2017 15:11
-
-
Save kyukyunyorituryo/45f7a3fbfb627033b1c3360d1a44e0aa to your computer and use it in GitHub Desktop.
xml整形
This file contains 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 lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<script src="vkbeautify.js"></script> | |
<title>ページタイトル</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
function convert(){ | |
var xml= document.getElementById('paste').value; | |
document.getElementById('paste').value=vkbeautify.xml(xml); | |
} | |
</script> | |
<p> | |
<label >XML整形</label> | |
</p><br> | |
<button type=button onclick="convert()">変換</button><br> | |
<textarea id="paste" cols="100" rows="30" placeholder="XMLを貼り付ける"></textarea> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment