Forums

[resolved] Uneascaping posts (3 posts)

  1. hanifb
    Member
    Posted 5 years ago #

    Hers the deal:

    I have created a admin page where i can create special posts with tiny MCE and they are written into their own database table.

    The problem is that i have a good sense that i am doing it wrong.

    WP escapes my post when it writes it into the database, but how can i unescape it and keeping the TinyMCE html tags when i read it?

  2. hanifb
    Member
    Posted 5 years ago #

    Ok since nobody answered i assume that my question was misformulated,

    What function adds the <p> on line breaks when a post is read from the database?

  3. hanifb
    Member
    Posted 5 years ago #

    Found it!

    apply_filters('the_content',$thetext);

Topic Closed

This topic has been closed to new replies.

About this Topic