stripHtml

    Signature

    Helper nodeHelper
    Signature
    stripHTML(String HTMLText)
    Description

    Removes the HTML from the text

    Introduced in

    Example use

    By default, text fields on the Azure DevOps and Freshdesk side have HTML tags. Use this method to remove HTML tags from any text fields when syncing.

    Remove the HTML tags from the description

    replica.description    = nodeHelper.stripHtml(issue.description)

    Example Usage in Freshdesk

    • Removing HTML Tags from a Description Field:

      replica.description = nodeHelper.stripHtml(entity.description)
    • Stripping HTML from a Hardcoded String:

      String description = "<p>Some description</p>" String descriptionWithoutHtml = nodeHelper.stripHtml(description)