html-validator-cli-0.1.0.3: Command Line Interface for https://validator.w3.org/

Safe HaskellNone
LanguageHaskell2010

Service.HtmlChecker.Response

Synopsis

Documentation

getExtract :: Message -> Maybe String Source #

Get "extract" valude from message.

The return value is unescaped to display without line break

unescapeSomeSpecialChar :: String -> String Source #

Convert some control chars to a whitespace.

To keep alingment, replace \? with ' ' instead of "\?".

>>> unescapeSomeSpecialChar "Line1\nLine2\nLine3\n"
"Line1 Line2 Line3 "
>>> unescapeSomeSpecialChar "HEADER\r\n\r\nBODY"
"HEADER    BODY"
>>> unescapeSomeSpecialChar "\a\b\t\n\v\f\r"
"\a\b  \v\f "