开发者

What is the official eol value that's sent by browsers (in textarea, for example)

I开发者_如何学Pythonn PHP "\n" acts as the eol for the OS you're on so that's unreliable.

Also, I understand that PHP has constants for EOL, that's not really what I'm asking, I want to know what EOL value I can reliably check for from browsers.


You should take a look at the HTML spec: http://www.w3.org/TR/html401/struct/text.html

But in a nutshell I believe this will answer your question.

A line break is defined to be a carriage return (
), a line feed (
), or a carriage return/line feed pair. All line breaks constitute white space.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜