{"id":662,"date":"2023-03-03T04:02:00","date_gmt":"2023-03-03T04:02:00","guid":{"rendered":"https:\/\/www.toolkit.keywordfinder.us\/?page_id=662"},"modified":"2023-03-03T04:02:00","modified_gmt":"2023-03-03T04:02:00","slug":"remove-extra-spaces-tool","status":"publish","type":"page","link":"https:\/\/tools.billionsideas.com\/es\/remove-extra-spaces-tool\/","title":{"rendered":"Remove Extra Spaces Tool"},"content":{"rendered":"<!DOCTYPE html>\n<html>\n<head>\n\t<title>Remove Extra Spaces Tool<\/title>\n\t<script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.6.0\/jquery.min.js\"><\/script>\n<\/head>\n<body>\n\t<h1>Remove Extra Spaces Tool<\/h1>\n\t\n\t<div>\n\t\t<label for=\"option-upload\">Upload file:<\/label>\n\t\t<input type=\"file\" id=\"option-upload\" accept=\".txt\">\n\t<\/div>\n\t\n\t<div>\n\t\t<label for=\"option-paste\">Or paste text here:<\/label>\n\t\t<textarea id=\"option-paste\"><\/textarea>\n\t<\/div>\n\t\n\t<div>\n\t\t<button id=\"btn-apply\">Apply<\/button>\n\t<\/div>\n\t\n\t<div>\n\t\t<h2>Result:<\/h2>\n\t\t<textarea id=\"result\" readonly><\/textarea>\n\t\t<button id=\"btn-copy\">Copy<\/button>\n\t<\/div>\n\t\n\t<script>\n\t\t$(document).ready(function() {\n\t\t\t$('#btn-apply').on('click', function() {\n\t\t\t\tlet input = '';\n\t\t\t\t\n\t\t\t\tif ($('#option-upload')[0].files[0]) {\n\t\t\t\t\tlet fileReader = new FileReader();\n\t\t\t\t\t\n\t\t\t\t\tfileReader.onload = function(event) {\n\t\t\t\t\t\tinput = event.target.result;\n\t\t\t\t\t\tprocessInput(input);\n\t\t\t\t\t};\n\t\t\t\t\t\n\t\t\t\t\tfileReader.readAsText($('#option-upload')[0].files[0]);\n\t\t\t\t} else {\n\t\t\t\t\tinput = $('#option-paste').val();\n\t\t\t\t\tprocessInput(input);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t$('#btn-copy').on('click', function() {\n\t\t\t\t$('#result').select();\n\t\t\t\tdocument.execCommand('copy');\n\t\t\t});\n\t\t\t\n\t\t\tfunction processInput(input) {\n\t\t\t\tlet output = input.replace(\/\\s+\/g, ' ').trim();\n\t\t\t\t$('#result').val(output);\n\t\t\t}\n\t\t});\n\t<\/script>\n<\/body>\n<\/html>","protected":false},"excerpt":{"rendered":"<p>Remove Extra Spaces Tool Remove Extra Spaces Tool Upload file: Or paste text here: Apply Result: Copy<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","footnotes":""},"class_list":["post-662","page","type-page","status-publish"],"taxonomy_info":[],"featured_image_src_large":false,"author_info":{"display_name":"Billions Ideas","author_link":"https:\/\/tools.billionsideas.com\/es\/author\/loginbillionsideas-com\/"},"comment_info":0,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tools.billionsideas.com\/es\/wp-json\/wp\/v2\/pages\/662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tools.billionsideas.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tools.billionsideas.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/es\/wp-json\/wp\/v2\/comments?post=662"}],"version-history":[{"count":0,"href":"https:\/\/tools.billionsideas.com\/es\/wp-json\/wp\/v2\/pages\/662\/revisions"}],"wp:attachment":[{"href":"https:\/\/tools.billionsideas.com\/es\/wp-json\/wp\/v2\/media?parent=662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}