Support

Account

Home Forums General Issues String Replace in Content Output Field Reply To: String Replace in Content Output Field

  • what you have is missing a bit, but it should work

    
    $text = get_field('cleanpostbox');
    $stripped_text = str_replace(array('<p>','</p>'),array('<apxh:p>','</apxh:p>'),$text);
    echo $stripped_text;