I’m currently attempting to export my data and I have the post_content but was wondering what function I would have to run that data though to get the new lines into BR tags and ignore div tags new lines. My end goal is to make it render exactly like how the current page does.
I was thinking maybe it was wpautop() in formatting.php but that is only referenced in wp_richedit_pre which looks like it deals with only the rich text editor, not end result. Then I was thinking maybe something with the add_filter function but there are tons of options for that.
Could anyone please inform me what function I need to pass the post_content through to get it to format properly?