{"id":1620,"date":"2023-12-09T20:28:10","date_gmt":"2023-12-09T11:28:10","guid":{"rendered":"http:\/\/miso-note.com\/?p=1620"},"modified":"2023-12-09T20:47:52","modified_gmt":"2023-12-09T11:47:52","slug":"%e3%82%aa%e3%83%b3%e3%83%a9%e3%82%a4%e3%83%b3%e6%96%87%e5%ad%97%e6%95%b0%e3%82%ab%e3%82%a6%e3%83%b3%e3%82%bf%e3%83%bc%ef%bc%9a%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%82%84html%e3%82%bf%e3%82%b0","status":"publish","type":"post","link":"http:\/\/miso-note.com\/?p=1620","title":{"rendered":"\u6587\u5b57\u6570\u30ab\u30a6\u30f3\u30bf\u30fc\uff1a\u6587\u5b57\u6570\u30fb\u6539\u884c\u30fb\u30b9\u30da\u30fc\u30b9\u30fbHTML\u30bf\u30b0\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30ab\u30a6\u30f3\u30c8\u30c4\u30fc\u30eb"},"content":{"rendered":"\n<p>\u30aa\u30f3\u30e9\u30a4\u30f3\u6587\u5b57\u6570\u30ab\u30a6\u30f3\u30bf\u30fc\u30c4\u30fc\u30eb\u3067\u3059\u3002HTML\u30bf\u30b0\u3092\u542b\u3080\u30c6\u30ad\u30b9\u30c8\u3084\u3001\u6539\u884c\u30fb\u30b9\u30da\u30fc\u30b9\u3092\u30ab\u30a6\u30f3\u30c8\u3059\u308b\u4fbf\u5229\u306a\u6587\u5b57\u6570\u30ab\u30a6\u30f3\u30c8\u30c4\u30fc\u30eb\u3067\u3059\u3002\u30ef\u30f3\u30bf\u30c3\u30c1\u3067\u7c21\u5358\u306b\u6587\u5b57\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3067\u304d\u307e\u3059\u3002\u7d20\u65e9\u304f\u6b63\u78ba\u306a\u6587\u5b57\u6570\u3092\u628a\u63e1\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<textarea id=\"inputText\" class=\"appInputArea textCounter\" placeholder=\"\u6587\u5b57\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\"><\/textarea>\n<button onclick=\"countInformation()\">\u30ab\u30a6\u30f3\u30c8\u958b\u59cb<\/button>\n<button onclick=\"resetInformation()\">\u30ea\u30bb\u30c3\u30c8<\/button>\n<table id=\"resultTable\">\n    \n<\/table>\n\n\n\n<script>\n\nfunction formatNumber(number) {\n    return number.toString().replace(\/\\B(?=(\\d{3})+(?!\\d))\/g, \",\");\n}\n\nfunction countInformation() {\n    const inputText = document.getElementById(\"inputText\").value;\n\n    const spaceRemovedText = inputText.replace(\/\\s\/g, ''); \/\/ \u30b9\u30da\u30fc\u30b9\u3092\u9664\u53bb\n    const spaceIncludedTextLength = formatNumber(inputText.length);\n    const spaceRemovedTextLength = formatNumber(spaceRemovedText.length);\n\n    const tagIncludedText = inputText.replace(\/<\\\/?[^>]+(>|$)\/g, ''); \/\/ HTML\u30bf\u30b0\u3092\u9664\u53bb\n    const tagExcludedTextLength = formatNumber(tagIncludedText.length);\n\n    const tagIncludedTextLength = formatNumber(inputText.length - tagIncludedText.length);\n\n    const lineBreaks = (inputText.match(\/\\n\/g) || []).length;\n    const spaces = (inputText.match(\/ \/g) || []).length;\n\n    const pages = formatNumber((inputText.length \/ 2000).toFixed(2)); \/\/ 1\u679a\u3042\u305f\u308a\u306e\u6587\u5b57\u65702000\u3092\u60f3\u5b9a\n\n    const encodeType = \"UTF-8\"; \/\/ \u30a8\u30f3\u30b3\u30fc\u30c9\u30bf\u30a4\u30d7\n\n    const table = document.getElementById(\"resultTable\");\n\n    table.innerHTML = `\n        <tr>\n            <th>\u60c5\u5831<\/th>\n            <th>\u7d50\u679c<\/th>\n        <\/tr>\n        <tr>\n            <td>\u30b9\u30da\u30fc\u30b9\u306a\u3057\u306e\u6587\u5b57\u6570<\/td>\n            <td>${spaceRemovedTextLength}\u6587\u5b57<\/td>\n        <\/tr>\n        <tr>\n            <td>\u30b9\u30da\u30fc\u30b9\u3042\u308a\u306e\u6587\u5b57\u6570<\/td>\n            <td>${spaceIncludedTextLength}\u6587\u5b57<\/td>\n        <\/tr>\n        <tr>\n            <td>HTML\u30bf\u30b0\u3092\u542b\u3093\u3060\u6587\u5b57\u6570<\/td>\n            <td>${tagIncludedTextLength}\u6587\u5b57<\/td>\n        <\/tr>\n        <tr>\n            <td>HTML\u30bf\u30b0\u3092\u542b\u307e\u306a\u3044\u6587\u5b57\u6570<\/td>\n            <td>${tagExcludedTextLength}\u6587\u5b57<\/td>\n        <\/tr>\n        <tr>\n            <td>\u6539\u884c\u306e\u6570<\/td>\n            <td>${lineBreaks}\u500b<\/td>\n        <\/tr>\n        <tr>\n            <td>\u30b9\u30da\u30fc\u30b9\u306e\u6570<\/td>\n            <td>${spaces}\u500b<\/td>\n        <\/tr>\n        <tr>\n            <td>\u539f\u7a3f\u7528\u7d19\u63db\u7b97<\/td>\n            <td>${pages}\u679a\u5206<\/td>\n        <\/tr>\n        <tr>\n            <td>\u30a8\u30f3\u30b3\u30fc\u30c9<\/td>\n            <td>${encodeType}<\/td>\n        <\/tr>\n    `;\n}\nfunction resetInformation() {\n    const table = document.getElementById(\"resultTable\");\n    table.innerHTML = `\n        <tr>\n            <th>\u60c5\u5831<\/th>\n            <th>\u6587\u5b57\u6570<\/th>\n        <\/tr>\n    `;\n    document.getElementById(\"inputText\").value = \"\";\n}\n\n\n<\/script>\n\n\n\n<!-- Rakuten Widget FROM HERE --><script type=\"text\/javascript\">rakuten_affiliateId=\"0ea62065.34400275.0ea62066.204f04c0\";rakuten_items=\"ranking\";rakuten_genreId=\"0\";rakuten_recommend=\"on\";rakuten_design=\"slide\";rakuten_size=\"728x200\";rakuten_target=\"_blank\";rakuten_border=\"on\";rakuten_auto_mode=\"on\";rakuten_adNetworkId=\"a8Net\";rakuten_adNetworkUrl=\"https%3A%2F%2Frpx.a8.net%2Fsvt%2Fejp%3Fa8mat%3D3TJPBI%2BCP8YWY%2B2HOM%2BBS629%26rakuten%3Dy%26a8ejpredirect%3D\";rakuten_pointbackId=\"a23102654151_3TJPBI_CP8YWY_2HOM_BS629\";rakuten_mediaId=\"20011816\";<\/script><script type=\"text\/javascript\" src=\"\/\/xml.affiliate.rakuten.co.jp\/widget\/js\/rakuten_widget.js\"><\/script><!-- Rakuten Widget TO HERE -->\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/www16.a8.net\/0.gif?a8mat=3TJPBI+CP8YWY+2HOM+BS629\" alt=\"\">\n\n\n\n<a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=3TLUX3+GAG16Q+3D3Q+6E71D\" rel=\"nofollow\">\n<img decoding=\"async\" border=\"0\" width=\"100%\" height=\"auto\" alt=\"\" src=\"https:\/\/www25.a8.net\/svt\/bgt?aid=231127239985&#038;wid=003&#038;eno=01&#038;mid=s00000015695001074000&#038;mc=1\"><\/a>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/www12.a8.net\/0.gif?a8mat=3TLUX3+GAG16Q+3D3Q+6E71D\" alt=\"\">\n\n\n\n<ins class=\"widget-banner\"><\/ins><script class=\"widget-banner-script\" src=\"https:\/\/widget-view.dmm.com\/js\/banner_placement.js?affiliate_id=misonote-001&#038;banner_id=204_336_280\"><\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u30aa\u30f3\u30e9\u30a4\u30f3\u6587\u5b57\u6570\u30ab\u30a6\u30f3\u30bf\u30fc\u30c4\u30fc\u30eb\u3067\u3059\u3002HTML\u30bf\u30b0\u3092\u542b\u3080\u30c6\u30ad\u30b9\u30c8\u3084\u3001\u6539\u884c\u30fb\u30b9\u30da\u30fc\u30b9\u3092\u30ab\u30a6\u30f3\u30c8\u3059\u308b\u4fbf\u5229\u306a\u6587\u5b57\u6570\u30ab\u30a6\u30f3\u30c8\u30c4\u30fc\u30eb\u3067\u3059\u3002\u30ef\u30f3\u30bf\u30c3\u30c1\u3067\u7c21\u5358\u306b\u6587\u5b57\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3067\u304d\u307e\u3059\u3002\u7d20\u65e9\u304f\u6b63\u78ba\u306a\u6587\u5b57\u6570\u3092\u628a\u63e1\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"author":1,"featured_media":1453,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[46],"tags":[],"class_list":["post-1620","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-46"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/miso-note.com\/index.php?rest_route=\/wp\/v2\/posts\/1620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/miso-note.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/miso-note.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/miso-note.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/miso-note.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1620"}],"version-history":[{"count":11,"href":"http:\/\/miso-note.com\/index.php?rest_route=\/wp\/v2\/posts\/1620\/revisions"}],"predecessor-version":[{"id":1641,"href":"http:\/\/miso-note.com\/index.php?rest_route=\/wp\/v2\/posts\/1620\/revisions\/1641"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/miso-note.com\/index.php?rest_route=\/wp\/v2\/media\/1453"}],"wp:attachment":[{"href":"http:\/\/miso-note.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/miso-note.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1620"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/miso-note.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}