Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
xml整形
<!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