Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author king-theme

    (@kingthemes)

    Hi,

    Please set the value default under base64 encoded string.

    'value' => base64_encode('your text here')

    You will not meet the trouble like this if you follow the document. The main reason why we must be encoded some of special fields such as “textarea”, “editor”,”group”. Because those fields has the free data struction. It can be break out all of page content struction if we do not encode them.

    You can imagine easier like SQL injection error.

    Regards,
    KC Team

    Thread Starter CodeCans

    (@mr_sagar)

    Him yes it should be square with base_encode. I understand.
    But i tried First with base64_encode But text field is working perfect with default value but textarea showing unexpected text..

    see what i did in code : https://prntscr.com/bc7lr2

    And see the Default Value in Back-end View: https://prntscr.com/bc7mye

    Hope will get solution

    Plugin Author king-theme

    (@kingthemes)

    Hi,

    I’ll sure check that for you very soon.

    Plugin Author king-theme

    (@kingthemes)

    Hi,

    I checked your screenshot and I found that you still do not encode for “testi_descr”

    Try to encode for “testi_descr” and let me know if it works

    Thanks,
    KC Team.

    Thread Starter CodeCans

    (@mr_sagar)

    Hi,
    I don’t know what you checked, Can you please see first screenshot again, see here: https://prntscr.com/bcwhid
    Is this not correct encode??

    Plugin Author king-theme

    (@kingthemes)

    Hi,

    Please encode for the “testi_descr” too

    'name' => 'testi_descr',
    'value' => base64_encode('your text here')
    Thread Starter CodeCans

    (@mr_sagar)

    Hi,
    you are very helpful,
    it’s working fine now. Thanks for you great help.
    RD Development

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Textarea field unexpected text showing first time’ is closed to new replies.