Skip to content

Commit

Permalink
remove console, decode textcontext setter
Browse files Browse the repository at this point in the history
  • Loading branch information
taoqf committed Jul 5, 2021
1 parent c66071a commit cb11eab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/nodes/node.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { decode } from 'he';
import { decode, encode } from 'he';
import NodeType from './type';
import HTMLElement from './html';

Expand All @@ -21,7 +21,6 @@ export default abstract class Node {
return decode(this.rawText);
}
public set textContent(val: string) {
console.error('ssssssssssssssss', val);
this.rawText = val;
this.rawText = encode(val);
}
}

0 comments on commit cb11eab

Please sign in to comment.