3
for my problem above, i have a workaround using javascript, if anyone interested, here is my code
insert this before you call the function
<{literal}>
<script type="text/javascript">
script>
<{/literal}>
BUG? the [ code] tag removes my content like "& lang" without space
then insert something like this to where you need it
<{literal}>
<script type="text/javascript">
script>
<{/literal}>
ugly but works