utils

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package utils: HTML page generation tools with XSS protection Provides basic HTML page construction using automatic content escaping Creates complete HTML documents with proper structure and XSS protection Supports customizable page titles and content using safe HTML rendering

utils: 具有安全功能的 HTML 页面生成工具 提供带有自动内容转义的基本 HTML 页面构建 创建具有正确结构和 XSS 保护的完整 HTML 文档 支持可定制的页面标题和内容,具有安全的 HTML 渲染

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPage

func NewPage(subject string, content string) string

NewPage creates complete HTML page using automatic content escaping Generates well-formed HTML document with title and main content Applies HTML escaping to prevent XSS attacks and ensure protection

NewPage 创建带有自动内容转义的完整 HTML 页面 生成具有标题和主要内容的格式良好的 HTML 文档 应用 HTML 转义以防止 XSS 攻击并确保安全性

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL