Why do replace strings work in Units but not in HTML Documents?

Hello,

An instructor is utilizing replace strings and noticed that they work in New Content Experience in a unit, but when the replace strings are added into an HTML document within the Unit, the replace string will get replaced with the text and will embed that into the code.

For example, if type the string {FirstName} in an HTML Document and click save and close, it will replace it with my first name as expected. The problem is that others will also see my first name because when I go back into edit it either in the editor or the source code, I notice that the string got replaced by the text of my name.

Can anyone explain why replace string work in some places like Units, but not others?

Thanks!

Answers