Strophe.js
    Preparing search index...

    Function findDisallowedChar

    • The first character of text which XML cannot represent, if it holds one.

      The caller words its own error, since what is worth saying depends on where the text came from: a value handed to stx can be pointed at and named, whereas a document arriving at the parser can only be refused.

      Parameters

      • text: string

      Returns DisallowedChar

      The character and where it is, or null if the text is entirely representable.