Title: Post content not processed correctly
Last modified: May 8, 2021

---

# Post content not processed correctly

 *  [LukasFritzeDev](https://wordpress.org/support/users/lukasfritzedev/)
 * (@lukasfritzedev)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/post-content-not-processed-correctly/)
 * Linebreaks in the raw download post content are converted to `<br>` instead of`
   <p>`.
 * As an example the post content created in TinyMCE
 *     ```
       My first paragraph.
   
       My second paragraph.
   
       My third paragraph.
       ```
   
 * is rendered on the site as
 *     ```
       html
       My first paragraph.<br>
       <br>
       My second paragraph.<br>
       <br>
       My third paragraph.<br>
       ```
   
 * but should be
 *     ```
       html
       <p>My first paragraph.</p>
       <p>My second paragraph.</p>
       <p>My third paragraph.</p>
       ```
   
 * In addition `br`s are also added in lists, which leads to an empty line after
   each list item. The html:
 *     ```
       html
       <ul>
        	<li>one</li>
        	<li>two</li>
        	<li>three</li>
       </ul>
       ```
   
 * is rendered as
 *     ```
       html
       <ul><br>
        	<li>one</li><br>
        	<li>two</li><br>
        	<li>three</li><br>
       </ul><br>
       ```
   
 * This was quite surprising and killed the design of the theme.
 * —
 * The fix is to use [`wpautop`](https://developer.wordpress.org/reference/functions/wpautop/)
   in favour of `nl2br`. In [shortcodes.php on line 254](https://plugins.trac.wordpress.org/browser/download-after-email/trunk/includes/shortcodes.php#L254)
   it should be:
 *     ```
       wp_kses_post( wpautop( $download_text ) )
       ```
   
 * The same is in line 568.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [mkscripts](https://wordpress.org/support/users/mkscripts/)
 * (@mkscripts)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/post-content-not-processed-correctly/#post-14432450)
 * Thank you for noticing! We’ve listed it for the next update.
 * It may take a while for the new update to be released. For the meantime, you 
   can change this line in shortcodes.php. This will then be overwritten with the
   final version during the update.
 * If you have any more suggestions or questions, please let us know 🙂
 * Kind regards,
    Team Download After Email
 *  Plugin Author [mkscripts](https://wordpress.org/support/users/mkscripts/)
 * (@mkscripts)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/post-content-not-processed-correctly/#post-14596838)
 * On second thoughts, this change will not be made in the next update. We are also
   working on a major update related to the implementation of Gutenberg functionality,
   which will include this change (wpautop) in a way that the existing download 
   forms will be changed as little as possible.
 * Kind regards,
    Team Download After Email

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Post content not processed correctly’ is closed to new replies.

 * ![](https://ps.w.org/download-after-email/assets/icon-256x256.png?rev=2016027)
 * [Download After Email - Subscribe & Download Form Plugin](https://wordpress.org/plugins/download-after-email/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/download-after-email/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/download-after-email/)
 * [Active Topics](https://wordpress.org/support/plugin/download-after-email/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-after-email/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-after-email/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [mkscripts](https://wordpress.org/support/users/mkscripts/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/post-content-not-processed-correctly/#post-14596838)
 * Status: not resolved