Skip to content

Commit

Permalink
Mantain compatibility with plugins using the old funciton
Browse files Browse the repository at this point in the history
  • Loading branch information
juanluisrp committed Nov 30, 2023
1 parent 6ee9474 commit 8e13f0f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions web/src/main/webapp/xslt/common/index-utils.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -682,4 +682,16 @@
else $fieldName"/>
</xsl:function>

<xsl:function name="gn-fn-index:json-escape" as="xs:string?">
<!-- This functions is deprecated. Please update your code to use util:escapeForJson function -->

<xsl:param name="v" as="xs:string?"/>
<xsl:choose>
<xsl:when test="normalize-space($v) = ''"></xsl:when>
<xsl:otherwise>
<xsl:value-of select="util:escapeForJson($v)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:function>

</xsl:stylesheet>

0 comments on commit 8e13f0f

Please sign in to comment.