consistency with entity escaping
This commit is contained in:
parent
18629cb220
commit
645424a7d8
3 changed files with 8 additions and 5 deletions
|
@ -64,7 +64,8 @@ escId = foldMap esc1 . Strict.unpack where
|
|||
escAttr :: Strict.Text -> Builder
|
||||
escAttr = foldMap esc1 . Strict.unpack where
|
||||
esc1 c = fromMaybe (singleton c) $ lookup c
|
||||
[('<', "<"), ('>', ">"), ('"', """), ('\'', "'")]
|
||||
[('<', "<"), ('>', ">"), ('"', """), ('\'', "'"),
|
||||
('&', "&")]
|
||||
|
||||
|
||||
class CanBuild a where build :: a -> Builder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue