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...