I want to do some regex_replace on description field. As description field also sometimes contain phone numbers, I want to hide those numbers,and show them on click. I already have jquery code that will hide numbers, but I need to do regex_replace on description field.

smarty code that I am trying is, to put this in field_out_value.tpl

PHP Code:
Only registered members can view the code
This trows me error. What I am doing wrong?


My jquery code is in footer.tpl

Only registered members can view the code.