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?
···
--
Amos King
USPS
Programmer/Analyst
St. Louis, MO
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?
--
Amos King
USPS
Programmer/Analyst
St. Louis, MO
Can you show some specifc code please? There isn't enough context
here for us to help you.
On 9/29/06, Amos King <amos.l.king@gmail.com> 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?
Amos King 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.
--
sure
<table>
<tr>
<td><%= post.body %></td>
</tr>
</table>
body may look like:
Hello, I'm a <a href="www.google.com">link</a>!
I want the html to be interpreted, but it is showing up as text in my
browser so link is not a link.
On 9/29/06, Gregory Brown <gregory.t.brown@gmail.com> wrote:
On 9/29/06, Amos King <amos.l.king@gmail.com> 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 King
USPS
Programmer/Analyst
St. Louis, MO
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:
<table>
<tr>
<td><%= post.body %></td>
</tr>
</table>
body may look like:
Hello, I'm a <a href="www.google.com">link</a>!
output:
Hello, I'm a <a href="www.google.com">link</a>!
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
Look at the source code.
You might be actually getting <
On 9/29/06, Amos King <amos.l.king@gmail.com> wrote:
Hello, I'm a <a href="www.google.com">link</a>!