textUnwrap()

Wrapper.prototype.textUnwrap()

The method returns the text of the Wrapper object without its opening and closing chars or the given opening and closing chars.

circle-info

The default values for the opening and closing parameters are taken from the Wrapper object.

wrapper.class.ts
public textUnwrap(
  opening: string = this.opening,
  closing: string = this.closing
): string {
  return Wrapper.unwrap(this.text, opening, closing);
}

Parameters

opening: string

Optional opening chars of stringarrow-up-right type to remove from the beginning of the text of the Wrapper instance.

closing: string

Optional closing chars of stringarrow-up-right type to remove from the end of the text of the Wrapper instance.

Returns

The return value is the text of stringarrow-up-right type without the opening and closing chars of the Wrapper object or given opening and closing chars.

Example usage

Last updated