Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Print WYSIWYG content with PHP as HTML

Tags:

html

php

wysiwyg

How can I print html code that has been created by a WYSIWYG editor with PHP? When I print it with "echo", then it shows the html code on the website only, rather than interpreting it as html tags.

Thanks for your answer.

like image 322
nimrod Avatar asked Dec 01 '25 15:12

nimrod


1 Answers

What you need is htmlspecialchars_decode

htmlspecialchars_decode — Convert special HTML entities back to characters

like image 156
secelite Avatar answered Dec 04 '25 05:12

secelite



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!