I need output from database variable without the html code
Posted: Mon Sep 07, 2009 9:17 pm
Hi,
I am reading from a database and putting html code as well into a variable. The output includes the html code. I dont want it to.
This is what I put into my page:
<?php echo $AboutYourBusiness ?>
The output of this is:
<p>Test, Test, Test.</p> <p>Another Test, Another Test, Another Test.</p>
I don't want the output to include the <p> brackets. I store them in the database text field so that I can have the output correctly formatted over several paragraphs.
This is what I want the output to be:
Test, Test, Test.
Another Test, Another Test, Another Test.
When I look at the source of the page the brackets have been output as <p>
How can I not have the output as <p> and have it as <p>
Thanking you in advance for help.
Denise
I am reading from a database and putting html code as well into a variable. The output includes the html code. I dont want it to.
This is what I put into my page:
<?php echo $AboutYourBusiness ?>
The output of this is:
<p>Test, Test, Test.</p> <p>Another Test, Another Test, Another Test.</p>
I don't want the output to include the <p> brackets. I store them in the database text field so that I can have the output correctly formatted over several paragraphs.
This is what I want the output to be:
Test, Test, Test.
Another Test, Another Test, Another Test.
When I look at the source of the page the brackets have been output as <p>
How can I not have the output as <p> and have it as <p>
Thanking you in advance for help.
Denise