Selection of tags works nicely. Now improve on tag replacement:
One Option
div.testclass ==> div.newclass (would replace also the class inside to newclass)
Probably Better Option:
Define "functions" or keywords
- replaceTagAddClasses(p,newclass1,newclass2)
- replaceTagAddAttribute(p,newAttribute1,newAtribute2) //or directly in Array form? [newAttripute1,newAttribut2]
- replaceClass(oldclass,newclass)
- replaceAttribute(oldAttribute,newAttribute)
- addAttribute(newAttribute)
- addClass(newClass)
With this change the foundryID generation might be exposed also - this is probably easier for users than using the javascript?
- addAttribute(secret="${foundryID}")
Selection of tags works nicely. Now improve on tag replacement:
One Option
div.testclass ==> div.newclass (would replace also the class inside to newclass)
Probably Better Option:
Define "functions" or keywords
With this change the foundryID generation might be exposed also - this is probably easier for users than using the javascript?