-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Simple functions for CSS. -- -- Simple functions for CSS. Currently contains only functions for -- escaping string values and identifiers for CSS. @package web-css @version 0.1.0 module Web.CSS.Escaping -- | Escape a CSS identifier. This function is slightly more permissive -- than the CSS standard. For example, it does not reject identifiers -- that begin with two hyphens. The function always escapes -- special characters such as the tilde (~) or left -- bracket ([). As such, they will never be interpreted as -- special characters. escapeIdentifier :: Text -> Text -- | Escape a CSS string value. This function is conservative and produces -- only output characters in the US-ASCII range. This comes at the cost -- of space usage, so this function should not be used to encode strings -- expected to contain a disproportionate amount of non-US-ASCII -- characters. escapeString :: Text -> Text