• ploughansen

    (@ploughansen)


    Hello

    When passing a field value containing an ampersand, the value get’s cut off just before the amp. I figured I could escape the value like this:

    [pass field=stilling escape=true]<br />
        [heading subtitle={FIELD}]test[/heading]<br />
    [/pass]<br />

    But that doesn’t do anything. Could you help me?

    https://wordpress.org/plugins/custom-content-shortcode/

Viewing 1 replies (of 1 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    In the latest plugin update, I added the escape parameter to [pass]. I’m not sure if that will solve your issue though – for one, it would seem the receiving shortcode [heading] should “unescape” it somehow.

    Could it be that there is a space before the ampersand? If the field could contain a space, you can wrap the passed tag with quotes: [heading subtitle='{FIELD}']

Viewing 1 replies (of 1 total)

The topic ‘Escaping values in a passed field’ is closed to new replies.