WebStorm
 
Get WebStorm

Convert contents to attribute

Last modified: 26 May 2024

The Convert Tag Contents to Attribute refactoring allows you to replace the contents of a set of XMLs tag with equivalent attributes. If this refactoring is invoked, all tags matching the selected tag's name will have their textual contents removed, and equivalent attributes created. This bulk transformation of tag contents to attributes is useful as XML schemas evolve.