Skip to content

@morph-mapper/source


@morph-mapper/source / sanitizeSelectedText

Function: sanitizeSelectedText()

sanitizeSelectedText(text): string | null

Defined in: parsing.ts:60

This function is used to sanitize the selected text by removing any new line characters and trimming the text.

Parameters

text

string | undefined

Returns

string | null