Helpers in Database Content?

Hi folks,

I’m trying to figure out if it’s possible to have helpers in database
content that would be parsed in the view.

For instance, suppose I have a helper called course_info, and if I were
use <%= course_info(COM101) %> it would return COM101: Introduction to

I’m trying to figure out how I could have folks input something like
[COM101] in a text field that’s stored in a database, and then have
parse [COM101] to output the same information.

Does anyone have any idea how I could do this?