Function escapeXML

  • Replaces XML-unsafe characters with corresponding predefined XML entities.

    Uses the shortest possible entities representation. I.e. " instead of ", and '' instead of '`.

    Parameters

    • text: string

      A text to escape.

    Returns string

    XML-safe text.

Generated using TypeDoc