• Resolved dschnurr

    (@bopxb)


    This should be an easy enough question to answer. I have a private messages plug-in that works great but when you read a message it contains escaped characters like “You\’re blah blah”.

    This is the code that selects the message from the database and displays it.

    $pm = $wpdb->get_row("SELECT * FROM $wpdb->prefix".private_messages." WHERE id = $id", ARRAY_A);
    
    	echo $pm['message'];

    I already did some searching but couldn’t find anything useful.
    Can someone enlighten me as to how I can display the message properly without the escape stuff?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Easy ? – Retrieving escaped strings from wordpress database’ is closed to new replies.