Jump to content

linebreaks


Lumit

Recommended Posts

hello,

I have a small problem. I am using include() to insert text from a file into my webpage, but I don't want to have <br /> everytime I need a linebreak (I'm making a CMS) I have set the textarea's wrapping to "hard" so it is being put into the txt file correctly, but php isn't accepting it. Is there a way to get it to accept them? Or convert it?

 

thanks,

Lumit

Link to comment
https://forums.phpfreaks.com/topic/110100-linebreaks/
Share on other sites

erm... No I think you misunderstood. I have a txt file with this in it:

this is on a new line!

and

so

is

this!!!

But when i use include() to put it in a php document it translates into:
this is on a new line! and so is this!!!
I want it to just put it in there as it was in the txt file.
Link to comment
https://forums.phpfreaks.com/topic/110100-linebreaks/#findComment-565666
Share on other sites

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.