• Hello,

    I want to insert a img tag into a database using wpdb for example:

    $text = '<img src="img.png">';
    $wpdb->insert($table_name, array('text' => $text ));

    But when I output it later on “<img src=”img.png”>” has changed in “\<img src\=\”img.png\”\>”

    Is there any possible way that this does not happen?

The topic ‘WPDB insert destroys HTML tags’ is closed to new replies.