I just checked that there wasn't a new bug in my old `html-parsing` package, in case that's which package you meant.

`html-parsing` correctly handles your example for me under Racket 6.3, so that package might be a backup option for you (but beware that it uses SXML representation, rather than the Racket `xml` representation).

#lang racket/base

(require (planet neil/html-parsing:3:0))

(html->xexp
 (string-append
  "<div class=\"messageInfo primaryContent\">\n"
  "<div class=\"messageContent\">\n"
  "<article>\n"
  "<blockquote class=\"messageText SelectQuoteContainer ugc baseHtml\">\n"
  "Message text here <br>\n"
  "</blockquote>\n"
  "</article>\n"
  "</div>\n"))

;; ==>
;; (*TOP*
;;  (div (@ (class "messageInfo primaryContent"))
;;       "\n"
;;       (div (@ (class "messageContent"))
;;            "\n"
;;            (article "\n"
;; (blockquote (@ (class "messageText SelectQuoteContainer ugc baseHtml"))
;;                                 "\n"
;;                                 "Message text here "
;;                                 (br)
;;                                 "\n")
;;                     "\n")
;;            "\n")
;;       "\n"))

http://www.neilvandyke.org/racket-html-parsing/

Neil V.

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to