botmasterai / botmaster-fulfill

a text-friendly way to integrate actions with your bot. Supply an object of action-functions that can return synchronously or asynchronously and replace text in the response, generate new responses, or do what the response claims to do.
MIT License
4 stars 2 forks source link

include xml validator as option #6

Open jwickens opened 7 years ago

jwickens commented 7 years ago

When input has invalid xml like

how are you ? <br> <hello />

The unclosed <br> will "swallow" all remaining tags

Another way to solve this might be to recurse into tags - at least if they are not an action tag.