We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
retag(tag)
It would be helpful to have the support of a retag(tag): //xpath parameter in site-config files.
retag(tag): //xpath
The main goal of this command would be to change the tag matching a XPath query.
Example, taking the following html and site-config:
<html> <body> <div class="heading-h3">Hello world</div> </body> </html>
retag(h3): //div[@class="heading-h3"]
would give the following output:
<html> <body> <h3>Hello world</h3> </body> </html>
The text was updated successfully, but these errors were encountered:
@j0k3r could you assign this issue to me please?
Sorry, something went wrong.
Is that an official syntax? Do not see it mentioned in the docs.
And would not it make more sense to preserve the attributes when just changing the tag name?
No, it would be a graby-only command
Yes, you're right
Kdecherf
No branches or pull requests
It would be helpful to have the support of a
retag(tag): //xpath
parameter in site-config files.The main goal of this command would be to change the tag matching a XPath query.
Example, taking the following html and site-config:
would give the following output:
The text was updated successfully, but these errors were encountered: