How do I add a function to a cell when using html in that cell?

I want to reference a different cell in the middle of a cell where I’m using html. Is there anyway to do this? Do to all the symbol in html format it seems to always throw an error. Not sure if this is possible but it would help me a bunch if it is.