0

In my web application, i have textbox whose value are got from Database. In DB the value of the textbox contains entity references such as &< etc but while rendering it on screen its not getting fetched correctly.

Example Value in DB : Hi &amp; How are you

Output Coming : Hi &amp; How are you

Required output : Hi & How are you

                    <xsl:choose>
                        <xsl:when test="@db-value ='' ">
                            <INPUT TYPE="TEXT" NAME="db-value" VALUE="{para-description}" />
                        </xsl:when>
                        <xsl:otherwise>
                            <INPUT TYPE="TEXT" NAME="db-value" VALUE="{@db-value}" />
                        </xsl:otherwise>
                    </xsl:choose>

I want the {@db-value} to appear correctly as mentioned in the example.

Thanks in advance

Rowland Shaw
  • 37,700
  • 14
  • 97
  • 166

0 Answers0