Escape HTML in Atom feed metadata rather than treating it as XHTML

master
Simon McVittie 2008-07-31 22:15:22 +01:00
parent 9b901a3364
commit a64dca8356
1 changed files with 5 additions and 9 deletions

View File

@ -12,22 +12,18 @@
</TMPL_IF> </TMPL_IF>
</author> </author>
<TMPL_IF NAME="COPYRIGHT"> <TMPL_IF NAME="COPYRIGHT">
<rights type="xhtml" xml:lang="en"> <rights type="html" xml:lang="en">
<div xmlns="http://www.w3.org/1999/xhtml">
<TMPL_IF NAME="LICENSE"> <TMPL_IF NAME="LICENSE">
<TMPL_VAR LICENSE> <TMPL_VAR LICENSE>
<TMPL_VAR COPYRIGHT> <TMPL_VAR COPYRIGHT ESCAPE=HTML>
<TMPL_ELSE> <TMPL_ELSE>
<TMPL_VAR COPYRIGHT> <TMPL_VAR COPYRIGHT ESCAPE=HTML>
</TMPL_IF> </TMPL_IF>
</div>
</rights> </rights>
<TMPL_ELSE> <TMPL_ELSE>
<TMPL_IF NAME="LICENSE"> <TMPL_IF NAME="LICENSE">
<rights type="xhtml" xml:lang="en"> <rights type="html">
<div xmlns="http://www.w3.org/1999/xhtml"> <TMPL_VAR LICENSE ESCAPE=HTML>
<TMPL_VAR LICENSE>
</div>
</rights> </rights>
</TMPL_IF> </TMPL_IF>
</TMPL_IF> </TMPL_IF>