• In a custom page i’m using the_editor function to edit database elements. First i get the content from the database with $wpdb->get_results. This content is put into the editor like this: the_editor($content). The problem is that urls and html elements are escaped by $wpdb->update. If i place for example an image and try to load the content and edit it again it isn’t readable anymore.

    So i need to de-escape the content before place it into the_editor. Anyone knows a function for this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter iivvvii

    (@iivvvii)

    nobody knows?

    Thread Starter iivvvii

    (@iivvvii)

    I resolved this problem with some php functions: htmlspecialchars_decode(html_entity_decode(stripslashes($content))). But if someone knows the wordpress solution?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the_editor decode content from database’ is closed to new replies.