Skip to content

Modify unsafeXML to not expect value XML#805

Merged
jcbrand merged 1 commit intomasterfrom
jcbrand/unsafe-xml
Feb 25, 2025
Merged

Modify unsafeXML to not expect value XML#805
jcbrand merged 1 commit intomasterfrom
jcbrand/unsafe-xml

Conversation

@jcbrand
Copy link
Copy Markdown
Contributor

@jcbrand jcbrand commented Feb 24, 2025

This makes it possible to also pass in properties, like so:

    <iq id="${getUniqueId()}"
            ${attrs.to ? Stanza.unsafeXML(`to="${Strophe.xmlescape(attrs.to)}"`) : ''}
            type="set"
            xmlns="jabber:client">
    </iq>

This makes it possible to also pass in properties, like so:

```
    <iq id="${getUniqueId()}"
            ${attrs.to ? Stanza.unsafeXML(`to="${Strophe.xmlescape(attrs.to)}"`) : ''}
            type="set"
            xmlns="jabber:client">
    </iq>
```
@jcbrand jcbrand merged commit 8bc48ac into master Feb 25, 2025
@jcbrand jcbrand deleted the jcbrand/unsafe-xml branch February 25, 2025 08:02
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.

1 participant