• Word

    (@hajar2901)


    Hi, how can I get json in php using shortcode without html tags ?
    I end up doing it like this :

    $shortcode = strip_tags(str_replace(array("var cf7db =","[","];"), array("","",""), do_shortcode( '[cfdb-json form="'.$form.'"]' )));
    

    is there any better solution ?

    • This topic was modified 6 years ago by Word.

The topic ‘Json without HTML’ is closed to new replies.