ContentAtXPath with case-insensitive and special chars
I've tryed to get all contents with same name but when i insert a name with an and or an apostrophe my Xpath fails and get zero results.
I've created this query:
var otherNodesWithSameName = _umbracoHelper.ContentAtXPath($"//*[translate(@nodeName,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')='{SecurityElement.Escape(savedItem.Name.ToLower())}']");
ContentAtXPath with case-insensitive and special chars
I've tryed to get all contents with same name but when i insert a name with an and or an apostrophe my Xpath fails and get zero results. I've created this query:
Can anyone help me?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.