tarea);
          tempTextarea.select();
          try {
            document.execCommand("copy");
            alert(`Copied JSON for selected tags:\n${selectedTags.join(", ")}`);
          } catch (err) {
            alert("Fallback: Unable to copy: " + err);
          }
          document.body.removeChild(tempTextarea);
        }
      }

      function filterTable() {
        const searchVal = document.getElementById("searchInput").value.toLowerCase();
        const table = document.getElem