Skip to content

An ExpressionEngine add-on for ensuring the output of something is JSON-ready

Notifications You must be signed in to change notification settings

clickrain/jsencode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

About:

Convert all applicable characters to HTML entities.


Usage:

{exp:jsencode:string}Nothing to escape{/exp:jsencode:string}
=> Nothing to escape

{exp:jsencode:string}/image/bridge.jpg{/exp:jsencode:string}
=> \/image\/bridge.jpg

{exp:jsencode:string}He said, "That's not true."{/exp:jsencode:string}
=> He said, \"That's not true.\"

Changelog:

Version 1.0.0
2013/02/01: Initial public release.

About

An ExpressionEngine add-on for ensuring the output of something is JSON-ready

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages