Veritabanına kaydederken
htmlentities($html, ENT_QUOTES, 'UTF-8');
Sayfaya yazdırırken
html_entity_decode($html, ENT_QUOTES, 'UTF-8');