haxr (XML RPC) rendering of string values

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Mon Dec 5 11:31:34 EST 2005


> "Any characters are allowed in a string except < and &, which are
> encoded as &lt; and &amp;. A string can be used to encode binary data."

I made the quick "fix" of adding the last line in Internals:

readString :: Monad m => String -> Err m String
readString = return . replace "&amp;" "&" . replace "&lt;" "<"
             . replace "&gt;" ">"
             . replace "&#32;" " "
-- 
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
---- http://www.imn.htwk-leipzig.de/~waldmann/ -------



More information about the Libraries mailing list