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
Is there any way to rewrap contents? I. e. I have original
<p class="some-class"> <!-- contents --> </p>
How can I achieve this with deface?
<div class="some-another-class"> <!-- contents --> </div>
The text was updated successfully, but these errors were encountered:
@gsmetal see https://github.com/spree/deface#action, I think you can use surround or surround_contents for that use case.
surround
surround_contents
Sorry, something went wrong.
@tenshiAMD No, with surround the result will be
<div class="some-another-class"> <p class="some-class"> <!-- contents --> </p> </div>
And with surround_contents it will be
<p class="some-class"> <div class="some-another-class"> <!-- contents --> </div> </p>
But I need to replace original wrapper with another one with same contents.
No branches or pull requests
Is there any way to rewrap contents? I. e. I have original
How can I achieve this with deface?
The text was updated successfully, but these errors were encountered: