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.

Link to comment
Share on other sites

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  :-[

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.