Update load_llms.py
Browse files- load_llms.py +3 -1
load_llms.py
CHANGED
@@ -36,7 +36,8 @@ def replace_starttags(html_string, replacements):
|
|
36 |
|
37 |
def format_html_string(html_string):
|
38 |
"""Format the HTML string to a readable text format."""
|
39 |
-
tags_to_remove = ["ul", "li", "br", "strong"
|
|
|
40 |
html_string = remove_endtags(html_string, tags_to_remove)
|
41 |
|
42 |
tag_replacements = {
|
@@ -44,6 +45,7 @@ def format_html_string(html_string):
|
|
44 |
"<li>": "\n➤ ",
|
45 |
"<br>": "\n",
|
46 |
"<strong>": "",
|
|
|
47 |
}
|
48 |
formatted_string = replace_starttags(html_string, tag_replacements)
|
49 |
|
|
|
36 |
|
37 |
def format_html_string(html_string):
|
38 |
"""Format the HTML string to a readable text format."""
|
39 |
+
tags_to_remove = ["ul", "li", "br", "strong",
|
40 |
+
"a href='https://opensource.org/license/mit", "a"]
|
41 |
html_string = remove_endtags(html_string, tags_to_remove)
|
42 |
|
43 |
tag_replacements = {
|
|
|
45 |
"<li>": "\n➤ ",
|
46 |
"<br>": "\n",
|
47 |
"<strong>": "",
|
48 |
+
"<a href='https://opensource.org/license/mit>": "",
|
49 |
}
|
50 |
formatted_string = replace_starttags(html_string, tag_replacements)
|
51 |
|