with open('app/modules/sag/templates/detail.html', 'r', encoding='utf-8') as f: text = f.read() css_start = text.find('