After saving the contents of ckeditor in the database as you show it so that it interprets the content and does not show it as such, for example:
hello community
I thought about the htmlspecialchars () function but I would also leave part of the content to be interpreted or I think ..