Commit ddb742c3 authored by Camil Staps's avatar Camil Staps 🐧

Escape quotation marks in HTML attribute values

parent 1547d15e
Pipeline #40129 passed with stage
in 1 minute and 58 seconds
......@@ -429,4 +429,7 @@ instance html HtmlTag
instance html [a] | html a
instance html (Maybe a) | html a
escapeStr :: !String -> String
//* Escape a string for use as a HTML text node.
escapeForTextNode :: !String -> String
//* Escape a string for use as a HTML attribute value.
escapeForAttribute :: !String -> String
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment