Newline character in HTML How often in practice will you find a
newline character in the middle of HTML? Just tested in my
browser - newline characters within HTML are ignored and the
output is displayed correctly. I am asking, because I would like
to introduce a small domain specific language that works with
the newline character as a trigger (outside of HTML, using the
off-side-rule). Now, if it is regarded as perfectly normal
practice to place the newline anywhere within HTML, I would
probably need regular expressions to find out the boundaries of
the blocks. My research has indicated, that especially in a
TEXTAREA, a newline character is perfectly normal. Thanks in
advance I use new line characters to make the HTML code more
readable, hence easier to maintain. So they are placed liberally
in every web page I have written. I think that is quite normal.
Thanks, that's what I thought What's the easiest way then to
detects the boundaries of HTML tags/blocks? Use a parser.
Originally Posted by “The power of th