I wrote this script to replace all carriage return and tab in my wordpress database and put it in a PHP page. import MySQLdb conn = MySQLdb.connect (host = “localhost”, user = “root”, passwd = “”, db = “test”) cursor = conn.cursor () cursor.execute (“SELECT post_title,post_content FROM wp_posts”) rows = cursor.fetchall () cnt =0 for