From de7961b99ca30e342b716e9be5db809a5c1e9c3d Mon Sep 17 00:00:00 2001 From: Leonard Smith Date: Fri, 7 May 2021 19:37:36 -0500 Subject: [PATCH] Fully resolve subs and wrap with angle brackets --- app/Handlers/UlbXmlImportHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Handlers/UlbXmlImportHandler.php b/app/Handlers/UlbXmlImportHandler.php index dbcd3ea..449586c 100644 --- a/app/Handlers/UlbXmlImportHandler.php +++ b/app/Handlers/UlbXmlImportHandler.php @@ -334,7 +334,7 @@ class UlbXmlImportHandler $word = $this->subs[ $key ]; // Do the actual sub replacement in the phrase - $result = str_replace( $key, "[$word->id]", $result ); + $result = str_replace( $key, "<$word->ulb>", $result ); } // Strange.. the node value has a [X] in it, but no sub match else