I'm building a database-driven gaming fansite and I want to be able to hyperlink mentions of items and other words that have their own page. For example, assume this is a page.
Item Name
This is a description of the item being pulled from the database. It can be combined with Item2 and Item3 to make Item4.
I would like to hyperlink Item2, Item3 and Item4 to their respective pages so that a user can navigate through the website more efficiently rather than having to type each name into the search bar manually.
I know that this can be achieved by inserting HTML into the description cell and have the browser to output it, but besides the obvious security risk of outputting unsantiised HTML, it would also be incredibly tedious to do this for each item and the table could begin to look rather ugly as it gets filled with anchor tags.
Nevertheless, I've seen such functionality on other websites and I'm wondering what's the safest and/or most efficient way of achieving this?