migration wip
This commit is contained in:
11
test-decode30.js
Normal file
11
test-decode30.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// Test decoding
|
||||
const text = 'bg_image=”45569″';
|
||||
console.log('Original:', text);
|
||||
|
||||
// Decode decimal HTML entities
|
||||
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