Skip to main content
13-Aquamarine
May 27, 2020 6:13 AM UTC
Solved

How to locate the tags that contain blanks at the start of the tag content using an ACL fucntion

Hello,

I'm looking for a way to locate the tags that contain blanks at the start of the tag content. What is the best way using an ACL function ?

Best regards

David

18-Opal
Sep 24, 2020 6:38 PM UTC

I would say the easiest way to do this is using XPath, something like this:

function fixSpaces() {
 local oids[], o;
 xpath_nodeset(oids, "//*[starts-with(text(),' ')]");
 for (o in oids) {
 # do something with oids[o]...
 }
}

2 replies

18-Opal
Sep 24, 2020 6:38 PM UTC

I would say the easiest way to do this is using XPath, something like this:

function fixSpaces() {
 local oids[], o;
 xpath_nodeset(oids, "//*[starts-with(text(),' ')]");
 for (o in oids) {
 # do something with oids[o]...
 }
}
Translate
dgopois13-AquamarineAuthor
13-Aquamarine
Sep 25, 2020 6:27 AM UTC

Hi Clay,

Thanks for your help.

David

Translate