Skip to content

Commit

Permalink
MIR-1254 optionally allow HTML content in validateion messages
Browse files Browse the repository at this point in the history
  • Loading branch information
toKrause authored and kkrebs committed Nov 15, 2023
1 parent 1169aaf commit 55e17ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mir-module/src/main/resources/xsl/xeditor-custom.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@

<xsl:template match="xed:validate[@i18n]" mode="message">
<li>
<xsl:value-of select="i18n:translate(@i18n)" />
<xsl:choose>
<xsl:when test="@disable-output-escaping='yes'">
<xsl:value-of disable-output-escaping="yes" select="i18n:translate(@i18n)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="i18n:translate(@i18n)"/>
</xsl:otherwise>
</xsl:choose>
</li>
</xsl:template>

Expand Down

0 comments on commit 55e17ec

Please sign in to comment.