You can't use dynamic text feature in HTML templates
There is a workaround, but it involves more steps
Start creating drag and drop based email, use dynamic text feature, copy the dynamic text code, cancel editing, start editing HTML template, paste the code in it