Replaces characters (less than, greater than, newlines and quotes) with their HTML entities in the given string and returns the result.

  • Parameters

    • s: string

      String that contains the characters to be converted.

    • newline: boolean = true

      If newlines should be replaced. Default is true.

    Returns string