Skip to main content

Module html

Module html 

Source
Expand description

HTML 转义工具(前端后端通用)。 HTML 转义工具(零依赖纯函数,前端后端通用)。

仓库内原先存在两份 escape_html 实现:

  • utils::html::escape_html''
  • api::comments::helpers::escape_html'',server-only) 现统一到本模块,单引号采用 HTML5 标准的 '

Functions§

escape_html
转义 HTML 特殊字符:& < > " '