feat(edit): 编辑上报细节优化

This commit is contained in:
2026-10-06 18:30:05 +08:00
parent e20cd7547f
commit 79b310efe7
92 changed files with 2764 additions and 368 deletions
+9
View File
@@ -0,0 +1,9 @@
/** 编辑器与快照保存纯文本;只在 Ozon 请求边界转换为官方支持的简介换行标签。 */
export function ozonDescriptionHtml(text: string): string {
return text
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/\r\n?/g, '\n')
.replace(/\n/g, '<br>');
}