I have an old server with API and I need to load data from it to a new server. The problem is that an old server API outputs html entities like ®, I don’t want to put those into a new database, instead I want to replace them with ® But I don’t know how to do it in Rails. I tried to do it with HTMLEntities class but it does not replace it with ® Please help.
Share
You can replace the ® entity with
®using gsub, e.g.