Skip to main content
13-Aquamarine
May 27, 2020
Solved

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

  • May 27, 2020
  • 1 reply
  • 3490 views

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

Best answer by ClayHelberg

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

1 reply

18-Opal
September 24, 2020

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]...
 }
}
dgopois13-AquamarineAuthor
13-Aquamarine
September 25, 2020

Hi Clay,

Thanks for your help.

David