DOM trouble

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • perfectlysafepinguin
    New Member
    • Sep 2007
    • 1

    DOM trouble

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

    <p><a href="http://www.cinemagia.r o/v1/index.php?page= movie/theater&ID=263" class="var1">Mo vieplex Cinema Plaza Romania</a><br>Vineri, Luni - Joi: 14:30 - 16:45 - 19:15 - 21:30<br>Sambat a, 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>Sambat a, 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.
  • Weisbartb
    New Member
    • Aug 2007
    • 36

    #2
    This is the wrong forum to post this. Please move this to the HTML forum

    Comment

    Working...