Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def search_and_highlight(full_text, keyword):
|
|
51 |
# Highlight for HTML output
|
52 |
html_text = (
|
53 |
html_text[:start] +
|
54 |
-
f'<span style="background-color:
|
55 |
html_text[end:]
|
56 |
)
|
57 |
|
|
|
51 |
# Highlight for HTML output
|
52 |
html_text = (
|
53 |
html_text[:start] +
|
54 |
+
f'<span style="background-color: yellow;">{html_text[start:end]}</span>' +
|
55 |
html_text[end:]
|
56 |
)
|
57 |
|