feat: implement specialty content module with expanded Page entity fields, database migrations, and data import utilities
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
const fs = require('fs');
|
||||
const html = fs.readFileSync('/home/x79/sisvietnamvn_01/BV_DHYD_HCM/Khoa Giải phẫu bệnh.html', 'utf8');
|
||||
|
||||
const h2s = html.match(/<h2[^>]*>([\s\S]*?)<\/h2>/gi);
|
||||
console.log('H2s:', h2s ? h2s.map(h => h.replace(/<[^>]+>/g, '').trim()) : 'None');
|
||||
|
||||
const h3s = html.match(/<h3[^>]*>([\s\S]*?)<\/h3>/gi);
|
||||
console.log('H3s:', h3s ? h3s.map(h => h.replace(/<[^>]+>/g, '').trim()) : 'None');
|
||||
Reference in New Issue
Block a user