mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-20 13:53:42 -05:00
urgent fix
This commit is contained in:
parent
afbd552d03
commit
432d44fc41
3 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
## 1.5.2
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
* urgent fix of html escaping
|
||||||
|
|
||||||
## 1.5.1
|
## 1.5.1
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|
|
@ -5,6 +5,6 @@ blacklistFile = 'word_blacklist.txt'
|
||||||
configFile = 'config.json'
|
configFile = 'config.json'
|
||||||
faviconDir = Path.cwd() / 'static' / 'icons' / 'favicon'
|
faviconDir = Path.cwd() / 'static' / 'icons' / 'favicon'
|
||||||
appName = 'CatAsk'
|
appName = 'CatAsk'
|
||||||
version = '1.5.1'
|
version = '1.5.2'
|
||||||
# id (identifier) is to be interpreted as described in https://semver.org/#spec-item-9
|
# id (identifier) is to be interpreted as described in https://semver.org/#spec-item-9
|
||||||
version_id = '-alpha'
|
version_id = '-alpha'
|
||||||
|
|
|
@ -152,14 +152,14 @@ def renderMarkdown(text):
|
||||||
# sanity of whoever will use this software
|
# sanity of whoever will use this software
|
||||||
# (after all, not everyone knows markdown syntax)
|
# (after all, not everyone knows markdown syntax)
|
||||||
md = mistune.create_markdown(
|
md = mistune.create_markdown(
|
||||||
escape=False,
|
escape=True,
|
||||||
plugins=plugins,
|
plugins=plugins,
|
||||||
hard_wrap=True
|
hard_wrap=True
|
||||||
)
|
)
|
||||||
html = md(text)
|
html = md(text)
|
||||||
cleaner = Cleaner(tags=allowed_tags, attributes=allowed_attrs)
|
cleaner = Cleaner(tags=allowed_tags, attributes=allowed_attrs)
|
||||||
clean_html = cleaner.clean(html)
|
clean_html = cleaner.clean(html)
|
||||||
return Markup(html)
|
return Markup(clean_html)
|
||||||
|
|
||||||
def generateMetadata(question=None, answer=None):
|
def generateMetadata(question=None, answer=None):
|
||||||
metadata = {
|
metadata = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue