mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
feat: init renderer server (#8088)
This commit is contained in:
4
packages/backend/native/src/html_sanitize.rs
Normal file
4
packages/backend/native/src/html_sanitize.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
#[napi]
|
||||
pub fn html_sanitize(input: String) -> String {
|
||||
v_htmlescape::escape(&input).to_string()
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
pub mod file_type;
|
||||
pub mod hashcash;
|
||||
pub mod html_sanitize;
|
||||
pub mod tiktoken;
|
||||
|
||||
use std::fmt::{Debug, Display};
|
||||
|
||||
Reference in New Issue
Block a user