[Haskell-cafe] Unescaping with HaXmL (or anything else!)
Henning Thielemann
lemming at henning-thielemann.de
Fri Mar 28 05:20:51 EDT 2008
On Thu, 27 Mar 2008, Anton van Straaten wrote:
> I want to unescape an encoded XML or HTML string, e.g. converting " to
> the quote character, etc.
>
> Since I'm using HaXml anyway, I tried using xmlUnEscapeContent with no luck,
> e.g. with HaXml 1.19.1:
>
> let (CString _ s _) =
> head $ xmlUnEscapeContent stdXmlEscaper $
> [CString False "This is a "quoted string"" ()] in s
>
> The result is unchanged, i.e. "This is a "quoted string"".
>
> Am I doing something wrong, or are my expectations wrong, or is this a bug?
>
> Or, is there any other library that includes a simple unescape function for
> XML or HTML?
Tagsoup must contain such a function but it doesn't seem to export it.
More information about the Haskell-Cafe
mailing list