I don’t know of any widgets like that. I don’t see any way of extending Otto’s widget or the basic text widget to do that either. This is simply because the content is handled after the title is output.
I’d just recommend forking Ott’s PHP Code Widget plugin and adding your changes to that. It’s really a simple plugin that’s not going to change much over time.