Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New render setting to control when to use CDATA #68

Merged
merged 1 commit into from Dec 20, 2015

Conversation

vigoo
Copy link
Contributor

@vigoo vigoo commented Dec 16, 2015

Adds a new function to RenderSettings which can decide whether to render the given content node as a CDATA or as text.

@@ -72,6 +73,9 @@ data RenderSettings = RenderSettings
, rsAttrOrder :: Name -> Map.Map Name Text -> [(Name, Text)]
-- ^ Specify how to turn the unordered attributes used by the "Text.XML"
-- module into an ordered list.
, rsUseCDATA :: Content -> Bool
-- ^ Determines if for a given text content the renderer should use a
-- CDATA node.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should include a comment that the default in False and a @since indicating the version this was added.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll just update this when merging actually.

@snoyberg snoyberg merged commit 9075547 into snoyberg:master Dec 20, 2015
snoyberg added a commit that referenced this pull request Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants