Skip to main content
Utility functions provide common functionality used throughout ClipSync, including text processing and content formatting.

convertLinksToAnchor

Converts URL strings in plain text to clickable HTML anchor tags, with support for sensitive content masking. Source: src/utils/index.js:1

Parameters

string
required
The text content to process for URL conversion.
object
required
The clipboard item object containing metadata.Properties:
  • sensitive (boolean): Flag indicating whether content should be hidden

Return Type