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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

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

dgopois
13-Aquamarine

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

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]...
  }
}
dgopois
13-Aquamarine
(To:ClayHelberg)

Hi Clay,

Thanks for your help.

David

Announcements

Top Tags