How Do I Differentiate HTML Tags and Merge Tokens? (Magic xpa 4.x)
HTML Tags and Merge tokens are similar in that both are surrounded by < >. However, Merge tokens begin with a specific string, usually <!$MG_. You can specify some other first three characters, by changing the entry in Form properties, but the MG_ is set by Magic xpa.
So, in the code snippet above, you can differentiate between the HTML tags such as <tr> and <td> and the Merge tokens, because the Merge tokens all start with <!$MG.
The Online and Rich Client Samples projects (program MG08 and RMG08)