-2

The ckEitor does not save the single inverted comma in my database. All other characters and special characters all saving except the single inverted comma.

Example: enter image description here

Abdulla Nilam
  • 36,589
  • 17
  • 64
  • 85
Basit Ali
  • 155
  • 6
  • 2
    Seems like an encoding issue to me. Have all documents the same encoding and has your HTML a correct ``? – Filnor Nov 22 '17 at 08:22

1 Answers1

1

do this before saving to DB

$formattedContent = htmlspecialchars($content, ENT_QUOTES);

and when showing

html_entity_decode($data, ENT_QUOTES);

This worked fine on mine.

Read what is <meta charset=“utf-8”>?

Abdulla Nilam
  • 36,589
  • 17
  • 64
  • 85