Files
klz-cables.com/test-entities.js
2025-12-30 16:19:42 +01:00

20 lines
653 B
JavaScript

const fs = require('fs');
const content = fs.readFileSync('data/processed/pages.json', 'utf8');
const pages = JSON.parse(content);
const start = pages.find(p => p.slug === 'start' && p.locale === 'de');
const html = start.contentHtml;
// Find the first bg_image
const match = html.match(/bg_image=([^>]+)/);
if (match) {
const after = match[1];
console.log('After bg_image=:', JSON.stringify(after.substring(0, 30)));
// Check each character
for (let i = 0; i < Math.min(10, after.length); i++) {
const char = after[i];
const code = char.charCodeAt(0);
console.log(` [${i}] '${char}' = ${code} (0x${code.toString(16)})`);
}
}