• Resolved bsmolyanov

    (@bsmolyanov)


    Hi, I am importing from json and the source json file contains \n at the end of each paragraph.

    I am trying to replace the “\n” in the imported post content template with double new line, i.e. I would like to have the one more empty new line after each paragraph.

    I am using the following without success, although it does the job replacing “|” with “,”

    [str_replace( array( “|”, “\n” ), array( “,”, “\n\n” ), {content[1]} )]

    Any ideas how to accomplish this?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘str_replace new lines’ is closed to new replies.