Reputation: 987
I'm working with Ionize - i'm trying to save text with html tags to mysqli, but i keep getting the text like this :
<p><div class="foo">foo</div></p>
while i want to get
<div class="foo">foo</div>
I've tried to replace all the htmlspecialchars methods with html_entity_decode but it didn't worked
Upvotes: 0
Views: 93
Reputation: 200
It's ok to have it saved like that, you just have to apply htmlspecialchars_decode on your result before printing it.
Upvotes: 1