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

CDATA Issue #1

Closed
nosweat opened this issue Apr 8, 2015 · 2 comments
Closed

CDATA Issue #1

nosweat opened this issue Apr 8, 2015 · 2 comments

Comments

@nosweat
Copy link

nosweat commented Apr 8, 2015

it escapes the cdata from becomes <![CDATA[Text String]]>

Any idea how to make the object allow Cdata format?

{ MyCdata : {
                '@': {
                    'MyAttrId': AttrId
                },
                '#': "<![CDATA[Text String]]>"
            }};
@wankdanker
Copy link
Owner

I pushed v1.0.0 to npm with a check for CDATA strings that skips sanitizing.

It should allow you to do exactly what you specified in your example.

Let me know if you have any issues.

@nosweat
Copy link
Author

nosweat commented Apr 9, 2015

@wankdanker thank you for quick response. I appreciate it. I tried the new version and it worked just fine.

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

No branches or pull requests

2 participants