I prefer to put that kind of thing in the display code, so that the database stores what you typed in and if you need to change something (like you noticed a bug in your regular expression code) then you can change it in one place and it affects everything.

It also keeps HTML out of the text in the databasee, should you need to go in and edit it later.