migration wip
This commit is contained in:
12
test-decode.js
Normal file
12
test-decode.js
Normal file
@@ -0,0 +1,12 @@
|
||||
// Test HTML entity decoding
|
||||
const text = 'bg_image=”45569″';
|
||||
console.log('Original:', text);
|
||||
|
||||
// The file has literal ” and ″ characters
|
||||
// But we need to decode them to "
|
||||
const decoded = text
|
||||
.replace(/”/g, '"') // ” -> "
|
||||
.replace(/″/g, '"'); // ″ -> "
|
||||
|
||||
console.log('Decoded:', decoded);
|
||||
console.log('Match:', decoded === 'bg_image="45569"');
|
||||
Reference in New Issue
Block a user