Skip to content

Commit

Permalink
Better handling of reserved XML characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulalbert1 authored Sep 25, 2017
1 parent 3092c54 commit a274dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ years,
case
when c.citation is not null and c.authorListEtAl not like('{%') then /*group_concat(distinct*/ concat(
replace(replace(c.authorListEtAl,'{',@t32_beforeBold),'}',@t32_afterBold),' ',
replace(replace(c.citation,'<','&lt;'),'>','&gt;')) /*order by citation asc separator '<w:br/><w:br/>' )*/
replace(replace(replace(replace(c.citation,'<','&lt;'),'>','&gt;'),"\'",'&apos;'),'&','&#38;')) /*order by citation asc separator '<w:br/><w:br/>' )*/
when c.citation is not null and c.authorListEtAl like('{%') then /*group_concat(distinct*/ concat(
replace(replace(c.authorListEtAl,'{',@t32_beforeBoldWhiteSpace),'}',@t32_afterBold),' ',
replace(replace(c.citation,'<','&lt;'),'>','&gt;')) /*order by citation asc separator '<w:br/><w:br/>' )*/
replace(replace(replace(replace(c.citation,'<','&lt;'),'>','&gt;'),"\'",'&apos;'),'&','&#38;')) /*order by citation asc separator '<w:br/><w:br/>' )*/
else 'No publications'
end,

Expand Down

0 comments on commit a274dfe

Please sign in to comment.