Export docid logicalname in htmltext attribute (closes #4152)