* Escape strings.

svn path=/nixos/branches/modular-nixos/; revision=16374
This commit is contained in:
Eelco Dolstra 2009-07-15 13:40:30 +00:00
parent 1424399002
commit f076849acd

View File

@ -72,7 +72,7 @@
<xsl:template match="string">
<!-- !!! escaping -->
<xsl:text>"</xsl:text><xsl:value-of select="@value" /><xsl:text>"</xsl:text>
<xsl:text>"</xsl:text><xsl:value-of select="str:replace(str:replace(str:replace(@value, '\', '\\'), '&quot;', '\&quot;'), '&#010;', '\n')" /><xsl:text>"</xsl:text>
</xsl:template>