Use msg.payload.data in template inside <script> tag

is it the same issue as this ?