Fixes #5475: function to create HTML/XML elements
Fixes #5431: wraps SPANs around non-link menu items (that contain no elements)
Differentiate non-links from links (usability)
Merge pull request #5618 from mrclay/5431

Fixes #5431 and #5475 and makes non-link menu items italicized