ifixkart-admin/Backend/app/utils/html_utils.py
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

12 lines
331 B
Python

import re
from typing import Any, Optional
def strip_html(value: Any) -> Optional[str]:
"""Remove HTML tags from a string, returning plain text for SEO fields."""
if not value:
return None
val_str = str(value).strip()
if not val_str:
return None
return re.sub(r"<[^>]+>", "", val_str).strip()