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
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
Solved! Go to Solution.
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]...
}
}
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]...
}
}
Hi Clay,
Thanks for your help.
David