• Resolved pixelshrink

    (@pixelshrink)


    Hi, using the block I can filter oneofthesewordsmustbein to the value ‘Etc/UTC’ by escaping the slash like this: ‘Etc\/UTC’. But this doesn’t work with the shortcode, is there a way to do so? I’ve tried all the ways I can think of including HTML escape characters.

    • This topic was modified 1 year, 1 month ago by pixelshrink.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author berkux

    (@berkux)

    Hi,
    can you please post the URL of the JSON here?
    Bernhard

    Plugin Author berkux

    (@berkux)

    Hi, I checked with https://worldtimeapi.org/api/timezone/Etc/UTC and can confirm, that this is an issue. Add a extra \ in the shortcode.

    [jsoncontentimporter url=https://worldtimeapi.org/api/timezone/Etc/UTC debugmode=”10″ oneofthesewordsmustbein=”Etc\\/UTC” oneofthesewordsmustbeindepth=”2″] raw_offset = {raw_offset}

    timezone = {timezone}

    unixtime = {unixtime}

    utc_datetime = {utc_datetime:datetime,d.m.Y, H:i:s,0}

    utc_offset = {utc_offset:datetime,d.m.Y, H:i:s,0}

    week_number = {week_number}
    [/jsoncontentimporter]

    This is how the Shortcodeparameter is passed to the Plugin.

    Bernhard

    • This reply was modified 1 year, 1 month ago by berkux.
    • This reply was modified 1 year, 1 month ago by berkux.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Escaping characters in shortcode parameter’ is closed to new replies.