Create a preview of content showing head and tail with truncation marker.
createContentPreview(
contentStr: string,
headLines: number = 5,
tailLines: number = 5
): string| Name | Type | Description |
|---|---|---|
contentStr* | string | The full content string to preview. |
headLines | number | Default: 5Number of lines to show from the start (default: 5). |
tailLines | number | Default: 5Number of lines to show from the end (default: 5). |