Strip usfm data from the verse ulb NOT the word ULB

This commit is contained in:
Leonard Smith 2021-05-06 08:35:02 -05:00
parent db649f5f84
commit df937b5795
1 changed files with 2 additions and 2 deletions

View File

@ -283,7 +283,7 @@ class UlbXmlImportHandler
'id' => implode('-', [$chapter_id, $verseNumber]),
'name' => $verseNumber,
'greek_text' => $verseElem->getElementsByTagName('Greek')[0]->nodeValue,
'ulb_text' => $verseElem->getElementsByTagName('ULB')[0]->nodeValue,
'ulb_text' => $this->stripUsfmMarkupFromUlb($verseElem->getElementsByTagName('ULB')[0])->nodeValue,
]);
// ***
@ -357,7 +357,7 @@ class UlbXmlImportHandler
$sub = $wordElem->getAttribute('sub');
// Does our content require a substitution?
$ulb = $this->replaceSub($this->stripUsfmMarkupFromUlb($wordElem));
$ulb = $this->replaceSub($wordElem);
$word = Word::create([
'verse_code' => implode('-', [$verse_id, $ognt_sort]),