Thank you for reporting this issue. This is the same problem as an earlier report about the '<' character in JavaScript inside xf:js tags breaking the template editor's highlighting, which was closed because it can't be fixed. The template editor still highlights those tags' contents as HTML.