[smartymixed mode] Smarty tags in HTML attributes break

Closes #1768