We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3027dc commit 0e8d9d6Copy full SHA for 0e8d9d6
data/filters/prepare-affiliations.lua
@@ -10,10 +10,14 @@ local function prepare_affiliations (meta)
10
for i, affiliation_index in ipairs(author.affiliation) do
11
affiliation_index = tonumber(pandoc.utils.stringify(affiliation_index))
12
local affiliation = meta.affiliations[affiliation_index]
13
+ local function html_escape(str)
14
+ local doc = pandoc.Pandoc{pandoc.Str(str)}
15
+ return pandoc.write(doc, 'html')
16
+ end
17
xml = xml.. "\n <institution><institution_name>"
18
for _, v in ipairs(affiliation.name) do
19
if v.text then
- xml = xml .. v.text
20
+ xml = xml .. html_escape(v.text)
21
else
22
xml = xml .. " "
23
end
0 commit comments