S
S
Shinso2018-02-08 19:11:56
css
Shinso, 2018-02-08 19:11:56

How to automate class merging?

In general, there is such a code with a repeating class

<input class="dd" maxlength="" class="ss" name="name" value="100" type="hidden"/>

Is there any automated way to convert it to
<input class="dd ss" maxlength="" name="name" value="100" type="hidden"/>

Provided that a lot of such alterations are needed in different index.php files, classes can be inside in a different order and the name of the classes will be different everywhere.
Well, or how else to substitute an additional class as a guideline for which name = "name"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Bukharev, 2018-02-08
@evgenybuckharev

The storm has a regular search and replace. You just need to compose it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question