I put html tags in a longtext field in my database, but when I grab it
for the page it uses it as regualr text. How can I get the html tags
to be recognized?
On 9/29/06, Amos K. [email protected] wrote:
I put html tags in a longtext field in my database, but when I grab it
for the page it uses it as regualr text. How can I get the html tags
to be recognized?
Can you show some specifc code please? There isn’t enough context
here for us to help you.
Amos K. wrote:
I put html tags in a longtext field in my database, but when I grab it
for the page it uses it as regualr text. How can I get the html tags
to be recognized?
You are probably escaping “<”, “>” and “&”. Just don’t do that.
On 9/29/06, Gregory B. [email protected] wrote:
On 9/29/06, Amos K. [email protected] wrote:
I put html tags in a longtext field in my database, but when I grab it
for the page it uses it as regualr text. How can I get the html tags
to be recognized?Can you show some specifc code please? There isn’t enough context
here for us to help you.
sure
<%= post.body %> |
body may look like:
Hello, I’m a link!
I want the html to be interpreted, but it is showing up as text in my
browser so link is not a link.
I put html tags in a longtext field in my database, but when I grab it
for the page it uses it as regualr text. How can I get the html tags
to be recognized?
rhtml looks like:
<%= post.body %> |
body may look like:
Hello, I’m a link!
output:
Hello, I’m a link!
I want the html to be interpreted, but it is showing up as text in my
browser so link is not a link.
Does anyone know of a way to accomplish this.
Thanks
Amos
On 9/29/06, Amos K. [email protected] wrote:
Hello, I’m a link!
Look at the source code.
You might be actually getting <