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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -