[smartymixed] Smarty tags in HTML attributes break

Closes #1768