ckeditor将html内容显示为纯文本

I am using CK editor to save HTML data into database, Its saving into database, but while viewing the HTML data, it shows as plain text.

For example

<div class="testimg"> Legion of Honor Museum Chill LoremLegion of Honor Museum Chill LoremLegion of Honor Museum Chill LoremLegion of Honor Museum Chill LoremLegion of Honor Museum Chill </div>

Please help me with this.

Thank you

You can use htmlspecialchars_decode() function to display the content with html tags

$str = "<div class="testimg"> Legion of Honor Museum Chill LoremLegion of Honor Museum Chill LoremLegion of Honor Museum Chill LoremLegion of Honor Museum Chill LoremLegion of Honor Museum Chill </div>
";
echo htmlspecialchars_decode($str);