Fixes #148

Return contents of <component> rather than the <component> itself.