471,862 Members | 1,631 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,862 software developers and data experts.

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 1082
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.