@@ -1355,7 +1355,7 @@ export const paste = async (vditor: IVditor, event: (ClipboardEvent | DragEvent)
if (doc.body) {
textHTML = doc.body.innerHTML;
}
-
+ textHTML = Lute.Sanitize(textHTML);
vditor.wysiwyg.getComments(vditor);
// process code
@@ -118,6 +118,8 @@ declare class Lute {
public static NewNodeID(): string;
+ public static Sanitize(html: string): string;
+
private constructor();
public SetJSRenderers(options?: {
@@ -232,6 +234,7 @@ declare const webkitAudioContext: {
interface ITips {
[index: string]: string;
alignCenter: string;
alignLeft: string;
alignRight: string;