开发者

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

开发者 https://www.devze.com 2023-01-16 01:32 出处:网络
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 w

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

精彩评论

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