• 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 5 years, 11 months ago by Word.

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