 `
                    <div class="website-info">
                        <h3><i class="fas fa-star"></i> ${website.name}</h3>
                        <p><i class="fas fa-link"></i> ${website.url}</p>
                        ${tagHTML}
                    </div>
                    ` : ''}
                </div>
            `;
            history.appendChild(messageDiv);
            history.scrollTop = history.scrollHeight;
        }
        
        // 获取标签名称
        function getTagName(tag) {
