I use content areas pretty extensively in Sender Profiles for dynamic from name and from email values. When using these content ares in my sender profile, I use the following AMPscript:
It's an HTML content area which is referencing a Content Builder HTML content block.
However, I notice when sending test emails my From Name and From Email is being wrapped! Similar to: SFMC wrapping Content Blocks with DIV
So now instead of a nice clean From Name, it comes across in my inbox as:
<div data-marker=wrapper style= class=stylingblock-content-wrapper></div>[Dynamic From Name]