CK Editor sends $_POST data encoded. How to decode?

  • rpjostform1
    Asked on July 3, 2017 at 2:36 AM

    Using the CK Editor in combination with my $_POST data code, I am receiving the following output from Jotform for this field:

    {"widget_metadata":{"type":"htmltext","value":"blah-blah-blah___but-this-is-just-a-string-of-characters"}}

    What is the decoding for this?

     

    Thanks.

  • Charlie
    Replied on July 3, 2017 at 4:03 AM

    I made a test form and I was able to replicate the concern you have.

    Here's my test form: https://form.jotformpro.com/71831590822962

    1. Here's the test submission I made: 

    CK Editor sends $ POST data encoded Screenshot 30

     

    2. Here's what the POST data looks like:

    CK Editor sends $ POST data encoded Screenshot 41

     

    Upon checking the CK Editor widget's source, it seems like this CK Editor is encoding it in base64 string. Depending on the language you are using, you should find a method built-in on that language that can decode base64 strings.

    I hope that helps. 

  • rpjostform1
    Replied on July 3, 2017 at 3:21 PM

    Got it.  Thanks.  PHP = base64_decode()