diff --git a/xExtension-LlmClassification/extension.php b/xExtension-LlmClassification/extension.php index 17c69cc..2edeb92 100644 --- a/xExtension-LlmClassification/extension.php +++ b/xExtension-LlmClassification/extension.php @@ -439,7 +439,11 @@ final class LlmClassificationExtension extends Minz_Extension { if ($existingPromptHash === $incomingPromptHash) { // Re-use existing tags matching the prefix $prefix = $this->getUserConfigurationString('tag_prefix') ?? ''; - $existingTags = $existingEntry->tags(); + // Decode the stored tags before re-adding them (will be HTML-encoded again in applyClassification) + $existingTags = array_map( + static fn(string $tag) => htmlspecialchars_decode($tag, ENT_QUOTES), + $existingEntry->tags() + ); if ($prefix !== '') { $existingTags = array_values(array_filter( $existingTags, diff --git a/xExtension-LlmClassification/metadata.json b/xExtension-LlmClassification/metadata.json index 9e48eed..239c5d6 100644 --- a/xExtension-LlmClassification/metadata.json +++ b/xExtension-LlmClassification/metadata.json @@ -2,7 +2,7 @@ "name": "LLM Classification", "author": "Alkarex", "description": "Tag incoming articles by calling an OpenAI-compatible LLM API", - "version": "0.3.1", + "version": "0.3.2", "entrypoint": "LlmClassification", "type": "user", "compatibility": "1.28.2"