Wikipedia: md_escape für Text (Fix #5)

This commit is contained in:
Andreas Bielawski 2016-07-03 00:38:31 +02:00
parent c48e7429a1
commit 52cbd768f0

View File

@ -126,7 +126,7 @@ function wikipedia:wikintro(text, lang)
local lang = lang or "de" local lang = lang or "de"
local title = page.title local title = page.title
local title_enc = URL.escape(title) local title_enc = URL.escape(title)
return '*'..title.."*:\n"..page.extract.."\n[Auf Wikipedia ansehen](https://"..lang..".wikipedia.org/wiki/"..title_enc..")" return '*'..title.."*:\n"..utilities.md_escape(page.extract).."\n[Auf Wikipedia ansehen](https://"..lang..".wikipedia.org/wiki/"..title_enc..")"
else else
local text = text.." nicht gefunden" local text = text.." nicht gefunden"
return text return text