i guess you forgot the htmlfree alias...
set %Tlatestinfo $addtok(%Tlatestinfo,Sent via: $remove($htmlfree(%tlatest),via),32)