Suhas Dhoke wrote:
>I actually see the "<BR/>" tags displayed on the screen. I don't want
this -- preferring to see line breaks. What is the proper way to set
the HTML between TEXTAREA tags?
Then, use the new line feed ("\n")
There is no character with that name. There is the Line Feed (LF) character
(escape sequence: "\n") and the Carriage Return (CR) character ("\r"). Both
are used for creating a new line: "\r\n" is used on WinDOS, "\n" is used on
Unices, and "\r" is used on Mac OS up to version 9, among others.
Therefore, it is probably best to use the escape sequence "\r\n" as it
satisfies all conceivable markup parsers, including standards-compliant ones.
instead of "<BR/>".
<BR/is not likely to be Valid markup anyway. If it should be HTML, then
it should be <BR>, <Br>, <bRor <br(else it would be equivalent to
"<BR>>". If it should be XHTML (which should only be used on today's Web
instead of HTML when absolutely necessary), then it must be <br/>, <br /or
<br></br(XHTML is case-sensitive), whereas the second form is deemed
"HTML-compatible" (because many of not most markup parsers do not implement
the HTML SHORTTAG feature properly).
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16