Changeset 3912:326f9c53acae for inc/core/class.dc.utils.php
- Timestamp:
- 11/03/18 09:32:26 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
inc/core/class.dc.utils.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.utils.php
r3874 r3912 133 133 { 134 134 return dcUtils::jsVars([$n => $v]); 135 } 136 137 public static function jsJson($id, $vars) 138 { 139 // Use dcUtils::jsLoad($core->blog->getPF('util.js')) to use the JS getData() decoder 140 $ret = '<script type="application/json" id="' . html::escapeHTML($id) . '-data">' . "\n" . 141 json_encode($vars, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES) . "\n" . '</script>'; 142 return $ret; 135 143 } 136 144
Note: See TracChangeset
for help on using the changeset viewer.
