PHP and MySQL – storing quotes 8th April 2019PHPhtml entities, mysql, quotesManish The best way to store quotes htmlentities($campaignsubject, ENT_QUOTES|ENT_SUBSTITUTE|ENT_HTML401); And to decode it back use html_entity_decode($rowsCampaigns['content'],ENT_QUOTES|ENT_SUBSTITUTE|ENT_HTML401);