$html = Get-Content "site\tools.html" -Raw

# We want to match:
# 1. <div class="tool-icon" ...> ... </svg></div>
# 2. (garbage to be deleted)
# 3. <div><div style="font-weight:700;

$pattern = '(?s)(<div class="tool-icon"[^>]*>.*?<svg.*?</svg></div>).*?(<div><div style="font-weight:700;font-size:16px;)'

$cleanHtml = [regex]::Replace($html, $pattern, "`$1`n        `$2")

Set-Content -Path "site\tools.html" -Value $cleanHtml -Encoding UTF8
Write-Host "tools.html cleaned."
