cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

dgopois
11-Garnet

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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

View solution in original post

Hi Clay,

Thanks for your help.

David

Announcements