作成日:2025-03-25, 更新日:2025-03-25

サンプル

<script>
	function unicodeToHtmlEntity(unicodeChar) {
		return '&#' + unicodeChar.charCodeAt(0) + ';';
	}
	console.log('\u30FB = U+30FB = ' + unicodeToHtmlEntity('\u30FB'));
</script>