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

tagString method #99

Merged
merged 1 commit into from
Sep 28, 2016
Merged

tagString method #99

merged 1 commit into from
Sep 28, 2016

Conversation

sonnyp
Copy link
Member

@sonnyp sonnyp commented Jul 6, 2016

This is useful to escape non self-closing xml such as

ltx.tagString`
  <?xml version='1.0'?>
  <stream:stream to='${domain}' version='1.0' xml:lang='${lang}' xmlns='${this.NS}' xmlns:stream='${NS_STREAM}'>
`


var escape = require('./escape').escapeXML

module.exports = function tag (/* [literals], ...substitutions */) {
Copy link
Member Author

Choose a reason for hiding this comment

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

tagString

@sonnyp sonnyp merged commit 9dbdad5 into master Sep 28, 2016
@sonnyp sonnyp deleted the tagString branch September 28, 2016 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant