Let me know if you want me to give you some JS heads up on how to compile such a string

Moderators: JRL, Dorian (MJT support)
item_type can be one of:
text - the inner text of the element
value - the value of the element if it has one (e.g. for inputs)
attribute/attribute_name - where attribute_name is a valid html attribute