package lib
import (
"html"
"net/http"
)
func HTML_Escape(s string) string {
return html.EscapeString(s)
}
func Is_HTMX_Request(r *http.Request) bool {
return r.Header.Get("HX-Request") == "true"
}
func Redirect(w http.ResponseWriter, r *http.Request, url string) {
http.Redirect(w, r, url, http.StatusSeeOther)
}