feat(popupdoc): Escape unsafe layouts' variables in popupdoc(detail) menus (closes #4914)