diff --git a/src-tauri/yaak-plugins/src/manager.rs b/src-tauri/yaak-plugins/src/manager.rs index 34abd2a6..9a550b2e 100644 --- a/src-tauri/yaak-plugins/src/manager.rs +++ b/src-tauri/yaak-plugins/src/manager.rs @@ -858,10 +858,11 @@ impl PluginManager { content: &str, content_type: &str, ) -> Result { - let plugin_name = if content_type.to_lowercase().contains("json") { - "@yaak/filter-jsonpath" - } else { + let ct = content_type.to_lowercase(); + let plugin_name = if ct.contains("xml") || ct.contains("html") { "@yaak/filter-xpath" + } else { + "@yaak/filter-jsonpath" }; let plugin = self