dict: convert htmlentities in non-html text results (#3921)

pull/3922/head
poire-z 6 years ago committed by GitHub
parent dad7f209fa
commit 24d4ab43c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -439,6 +439,8 @@ local function tidyMarkup(results)
def = def:gsub(format_escape, "%1")
end
end
-- convert any htmlentities (>, "...)
def = util.htmlEntitiesToUtf8(def)
-- ignore all markup tags
def = def:gsub("%b<>", "")
-- strip all leading empty lines/spaces

Loading…
Cancel
Save