Fix potential infinite loop in routine ifeq().
Remove obsolete code.
Encapsulate regex in a variable (routine assemble()).
Add validation check for 'alt' attribute on img and input tags.
Add 'alt' attribute to <img> and <input> tags