On Mar 26, 2009, at 4:19 PM, bart wrote:
For each match it creates a div which holds the HTML in text format. I noticed that it transformed a line break <br /> to <br> (without the slash) what causes this behavior? Does this only happen with self closing tags? Can I prevent it all together?
I believe XHTML is the only version that enforces a break element to be self-closed. The rest accept (or even define) <br>, rather than <br />. Browsers (luckily?) are very forgiving, so they rewrite <br / > to <br> internally. That is probably why you get them back like that.
Exactly why would you want to prevent the browser from rewriting it? Regards, -- Martijn.