Skip to content

Instantly share code, notes, and snippets.

@kyukyunyorituryo
Created June 21, 2017 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyukyunyorituryo/45f7a3fbfb627033b1c3360d1a44e0aa to your computer and use it in GitHub Desktop.
Save kyukyunyorituryo/45f7a3fbfb627033b1c3360d1a44e0aa to your computer and use it in GitHub Desktop.
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