feat(edit): 编辑上报细节优化
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/** 编辑器与快照保存纯文本;只在 Ozon 请求边界转换为官方支持的简介换行标签。 */
|
||||
export function ozonDescriptionHtml(text: string): string {
|
||||
return text
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/\r\n?/g, '\n')
|
||||
.replace(/\n/g, '<br>');
|
||||
}
|
||||
Reference in New Issue
Block a user