sdhanabal1 commited on
Commit
aa506d0
1 Parent(s): c630ead

Test html rendering error

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -49,8 +49,7 @@ def main() -> None:
49
  replaced_text = html.escape(terms_and_conditions_text)
50
  for sentence in summary_sentences:
51
  sentence = html.escape(sentence)
52
- replaced_text = replaced_text.replace(sentence,
53
- f"<span style='background-color: #FFFF00'>{sentence}</span>")
54
  replaced_text = replaced_text.replace('\n', '<br/>')
55
  with st.container():
56
  st.markdown(replaced_text, unsafe_allow_html=True)
 
49
  replaced_text = html.escape(terms_and_conditions_text)
50
  for sentence in summary_sentences:
51
  sentence = html.escape(sentence)
52
+ replaced_text = replaced_text.replace(sentence, sentence)
 
53
  replaced_text = replaced_text.replace('\n', '<br/>')
54
  with st.container():
55
  st.markdown(replaced_text, unsafe_allow_html=True)