Jump to content

Need simple echo help


t3kizzleee

Recommended Posts

I am not sure on what you are trying to do?

 

Are you trying to print on a web browser an html tags.. if do so you need to use a function:

echo(htmlentities("<br />", ENT_QUOTES));

 

But if you would like to <br /> only, of course you're not going to see it, coz it is a html tag, you can see it if you view source, :D.

I am not sure on what you are trying to do?

 

Are you trying to print on a web browser an html tags.. if do so you need to use a function:

echo(htmlentities("<br />", ENT_QUOTES));

 

But if you would like to <br /> only, of course you're not going to see it, coz it is a html tag, you can see it if you view source, :D.

 

LOL i actually didn't think he wanted to output an ACTUAL "<br />"  xD i guess that would make more sense why he can't get it working  :-[

I don't want to print the line break.

 

I know that it is a BR tag.

 

I want to print the specific characters "<br/>"

 

EDIT:

 

The htmlentities worked for me.

 

Thank you so much.

 

I was trying to do with with a \ to negate the < in the tag but it wouldn't work and it got me really frustrated. Thanks.

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.