Workpam commited on
Commit
bede987
·
verified ·
1 Parent(s): b657675

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -145,7 +145,7 @@ def create_result_html(results):
145
  <strong>Alt Text:</strong><br>
146
  <span id="alt-text-{i}">{result['alt_text']}</span>
147
  </div>
148
- <button class="copy-button" id="{button_id}" onclick="copyToClipboard('{result['alt_text'].replace("'", "\\'")}', '{button_id}')">
149
  📋 Copy Alt Text
150
  </button>
151
  </div>
 
145
  <strong>Alt Text:</strong><br>
146
  <span id="alt-text-{i}">{result['alt_text']}</span>
147
  </div>
148
+ <button class="copy-button" id="{button_id}" onclick="copyToClipboard(`{result['alt_text']}`, '{button_id}')">
149
  📋 Copy Alt Text
150
  </button>
151
  </div>