Dreamweaver - tag / span ohne Inhalt löschen
Gibt es unter Dreamweaver (CS 6) die Möglichkeit, tags bzw. spans "ohne Inhalt" mit einem Schlag zu löschen?
Also:
<span class="X"></span>
oder
<p class="X"></p>
Liebe Grüße
Sabine
Gibt es unter Dreamweaver (CS 6) die Möglichkeit, tags bzw. spans "ohne Inhalt" mit einem Schlag zu löschen?
Also:
<span class="X"></span>
oder
<p class="X"></p>
Liebe Grüße
Sabine
You should be able to use DW's Find & Replace tool.
Hit Ctrl + F
Change the Find In menu to Current Document
Change the Search menu to Specific Tag
Change the Specific Tag menu to span
Click the + button
Change the new menu to Not Containing
Change the next menu to Text
Put a space in the text field
Change the Action to Remove Tag and Contents
Test it by clicking the Find Next button on the right side. It should select the first empty <span> tag in your code. Clicking Replace will delete it. Clicking Replace All will delete all empty <span> tags from your code.
Do the same thing for each empty tag type you want to remove, changing span to p for example.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.