mirror of
https://github.com/wechat-article/wechat-article-exporter.git
synced 2026-06-08 00:30:12 +08:00
18 lines
403 B
TypeScript
18 lines
403 B
TypeScript
import { validateHTMLContent } from '#shared/utils/html';
|
|
import { read, samples } from './common';
|
|
|
|
function run() {
|
|
for (const group of samples) {
|
|
console.group(group.name);
|
|
for (const samplePath of group.samples) {
|
|
const html = read(samplePath);
|
|
const result = validateHTMLContent(html);
|
|
console.log(result);
|
|
}
|
|
console.groupEnd();
|
|
console.log();
|
|
}
|
|
}
|
|
|
|
run();
|