This commit is contained in:
henk717 2022-03-20 13:10:56 +01:00
parent 932aabc2f3
commit 5c795609e4
1 changed files with 1 additions and 1 deletions

View File

@ -2168,7 +2168,7 @@ def sendUSStatItems():
# KoboldAI Markup Formatting (Mixture of Markdown and sanitized html)
#==================================================================#
def kml(txt):
txt = txt.replace('>', '>')
txt = txt.replace('\>', '>')
txt = bleach.clean(markdown.markdown(txt), tags = ['p', 'em', 'strong', 'code', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'li', 'ul', 'b', 'i', 'a', 'span', 'button'], styles = ['color', 'font-weight'], attributes=['id', 'class', 'style', 'href'])
return txt