Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • simon eriksen 24 posts 113 karma points
    Feb 22, 2017 @ 10:07
    simon eriksen
    0

    output escaping on input field value (xslt)

    I am working on a site written in xslt which i am not very confident in. When creating an article all text is being htmlencoded which is required. On most pages using a value-of with disable-output-escaping="yes" is enough to decode it, but on the edit page where i need to output to the value of a text input, it still gives me the encoded values.

    What i've tried: <xsl:variable name="atcHeadline" > <xsl:value-of select="$pageid/wwoverskrift" disable-output-escaping="yes"/></xsl:variable> <input type="text" class="form-control" value="{$atcHeadline}" name="headline" id="headline"/>

    but it gives me: &amp;

    instead of &

    Thanks in advance.

Please Sign in or register to post replies

Write your reply to:

Draft