
5 Dec
2005
5 Dec
'05
11:37 a.m.
Johannes Waldmann wrote:
"Any characters are allowed in a string except < and &, which are encoded as < and &. 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 "&" "&" . replace "<" "<" . replace ">" ">" . replace " " " "
Since this only adds to my already incredibly inefficient hack for handling entity references, it's of course not a long term solution. I'll try to write something better. I had forgotten that I used this crazy hack. /Björn