If the issue is that the filtered transclusion output a link, why not assign the filter directly to the text widget or use another template for the filtered transclusion? Would that work too ?
.myclass [data-item-title="<$text text={{{ [{active}escapecss[]] }}}/>"] {
color: #fff;
}
or
.myclass [data-item-title="{{{ [{active}escapecss[]]||$:/core/templates/canonical-uri-external-raw}}}"] {
color: #fff;
}
Alternatively, a custom template with this content :
<$view field="title"/>