[Template] bug when removing some {VAR}

Issue #22 resolved
Syone C.
repo owner created an issue

Example: When you try to set a json encoded string: $this->setVar('VAR', '[{"bSortable":false,"aTargets":[-1]}]'); At the end, {"bSortable":false,"aTargets":[-1]} will be removed in the ouput because the template engine thinks it's a var

try to use another regexp line 56 in Template.php: $res = preg_replace('/{[^ \t\r\n}",]+}/', "", $res);

Comments (1)

  1. Log in to comment