Jump to content

outputting Rich Text Format HTML


dcparham

Recommended Posts

i installed FCKEDITOR/a pretty simple install, and now it formats text using rtf controls, then submits the form data into a database replete with the appropriate HTML tags; yet when i output that same data into my html page, it displays WITH the html tags, NOT as html itself.

 

i feel like i am just overlooking something basic - thank you very much for your help!!

 

{CODE}

  <div id="contentMain">

<br /><strong>Day to Day - Message from Management:</strong><br /><br />

 

<p><?php echo $message;?></p>

 

</div>

 

Link to comment
https://forums.phpfreaks.com/topic/147645-outputting-rich-text-format-html/
Share on other sites

[repeat post; accidentally posted last time, not including some code]

 

i installed FCKEDITOR/a pretty simple install, and now it formats text using rtf controls, then submits the form data into a database replete with the appropriate HTML tags; yet when i output that same data into my html page, it displays WITH the html tags, NOT as html itself.

 

i feel like i am just overlooking something basic - thank you very much for your help!!

 

this is generated and put into variable $message:

<p>HELLO!  During the upcoming Summer months, here are a few tips we can all use with regards to Fire, and Water Safety:</p>

<ol>

    <li>When grilling keep the gasoline away from the grill.  Getting 3rd degree burns on you will not make the burgers taste any better.</li>

    <li>Do not ski in swampy areas where stumps can maim you, destroy your boat, or alligators can eat you.</li>

</ol>

========

{CODE USED TO DISPLAY}

<div id="contentMain">

<br /><strong>Day to Day - Message from Management:</strong><br /><br />

<p><?php echo $message;?></p>

</div>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.