Function: normalizeVerseText()
normalizeVerseText(
rawText,legacyFormatting?):NormalizedVerse
Defined in: Data/Text/normalizeVerseText.ts:150
Normalize one legacy verse.
Parameters
rawText
string
the v1 bible_verse.text value (presentational HTML)
legacyFormatting?
the v1 bible_verse.formatting_data value, as a JSON
string or an already-parsed object. Optional: the HTML in
rawText is authoritative and reproduces it, but any
range it carries is merged in so nothing is lost.