Where does RC strip HTML tags and covert to entities?

I understand WHY this is happening, but I would like to know where it is happening. Anyone know where it is in the source code?

Normally in the server side you could use a series of PHP functions (such as strip_tags ) and to remove HTML and ugly formatting. However, if you’re unable to use the server (or you use Node.js) to achieve this task, then you can still use Javascript to do it. In this article, you will find 3 ways to strip the html tags from a string in Javascript.