469,366 Members | 2,220 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

DOM trouble

Hi, i'm trying to parse this part of an html

<p><a href="http://www.cinemagia.ro/v1/index.php?page=movie/theater&ID=263" class="var1">Movieplex Cinema Plaza Romania</a><br>Vineri, Luni - Joi: 14:30 - 16:45 - 19:15 - 21:30<br>Sambata, Duminica: 11:45 - 14:30 - 16:45 - 19:15 - 21:30<br></p>

But when i try to get this part

<br>Vineri, Luni - Joi: 14:30 - 16:45 - 19:15 - 21:30<br>Sambata, Duminica: 11:45 - 14:30 - 16:45 - 19:15 - 21:30<br>

using textContent , the <br> elements are ignored and the output is

Vineri, Luni - Joi: 14:30 - 16:45 - 19:15 - 21:30Sambata, Duminica: 11:45 - 14:30 - 16:45 - 19:15 - 21:30

Is there a way to let the <br> elements where they are?
Thanks.
Sep 13 '07 #1
1 1041
This is the wrong forum to post this. Please move this to the HTML forum
Sep 13 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Jacek Dziedzic | last post: by
reply views Thread by Alexandre Jaquet | last post: by
1 post views Thread by Jim Bancroft | last post: by
6 posts views Thread by Daniel Walzenbach | last post: by
reply views Thread by mrchatgroup | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.