PHP variable with HTML formatting -


here variable getting mysql database:

<h1>this h1</h1> <p>not bold</p> <p>&nbsp;</p> <p><strong>bold</strong></p> 

i using tinymce format code.

here how echo it

<?php  // while loop getting $row mysql $concontent = $row['content']; 

then, when go page, displays output this... http://i.snag.gy/bbmqx.jpg

i want variable make echo formatted. have html formatting.

can check html source of output? html still around? looks strip_tags() or htmlpurifier removes html. otherwise either see formatting applied or tags in output.

if have html code in database don't have in php, can directly print it.


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -