Wrong syntax made it so that having a text node after the text node in which we're inserting a closing backtick character, converted all the text after the backtick to the word "NaN". This fixes that syntax error and ensures such cases are properly handled. X-original-commit: 2833b42c09582dbcfed334d9fe6628a8eaf476b8 Part-of: odoo/odoo#110784