On Thu, Jan 7, 2016 at 12:28 PM, Neil Van Dyke <[email protected]> wrote:

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

Sorry, I should have been clearer.  I'm talking about these:  (require html
xml), not yours.


`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).
>

 Yeah, I've been looking at it since sending the message.  It parses it
correctly, which is great.  I was just hoping not to have to rewrite
everything for a new representation.

Ah, well.  It's a learning project, so this is just more learning.

Dave



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