Click to See Complete Forum and Search --> : [RESOLVED] how to parse databased html tags??


kredd
04-01-2008, 06:49 PM
got a wysiwyg editor in cms page so the client can add content and format content. all that works well but when i output the data it spits out all the tags as text instead of parsing it all as html tags.



addslashes(htmlspecialchars($_POST['par1']));



so all the p,b,a tags are being written instead of parsed. so given that i'm actually inserting correctly, what gets em' parsed when spit back out???!!!!

thanks!

toenailsin
04-01-2008, 09:00 PM
do the exact opposite

htmlspecialchars_decode(stripslashes('text'))

kredd
04-01-2008, 10:00 PM
how did that not come up in one of my gazillion internet searches?!?

thanks so much!