import os import re script_replacement = """ """ files = [ 'src/main/resources/templates/posts/full-width.html', 'src/main/resources/templates/posts/livestream.html', 'src/main/resources/templates/posts/sidebar.html' ] for file_path in files: with open(file_path, 'r') as f: content = f.read() # Regex to match the old Editor.js script block pattern = re.compile(r'