|
@ -118,6 +118,9 @@ def description(): |
|
|
if file.lower().endswith(('.html')): |
|
|
if file.lower().endswith(('.html')): |
|
|
with open("static/"+file,"r", encoding='utf-8') as f: |
|
|
with open("static/"+file,"r", encoding='utf-8') as f: |
|
|
textfile = f.read() |
|
|
textfile = f.read() |
|
|
|
|
|
word = "way" |
|
|
|
|
|
wordlinked = "<a href='/diverge?search="+word+"'>"+word+"</a>" |
|
|
|
|
|
textfile = re.sub(word, wordlinked, textfile) |
|
|
textfile = Markup(textfile) |
|
|
textfile = Markup(textfile) |
|
|
|
|
|
|
|
|
return render_template('description.html', datafromjson=datafromjson, itemid=itemid, textfile=textfile, idno=idno) |
|
|
return render_template('description.html', datafromjson=datafromjson, itemid=itemid, textfile=textfile, idno=idno) |
|
|