in reply to JSON::XS and escaping literal strings
At work, we don't escape it, as we don't include JSON into script tags.
What's wrong with s{([/!])}{\\$1}g?
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: JSON::XS and escaping literal strings
by abelard12 (Novice) on Jun 06, 2018 at 23:37 UTC | |
by tobyink (Canon) on Jun 07, 2018 at 06:38 UTC | |
by Anonymous Monk on Jun 07, 2018 at 21:27 UTC | |
by Anonymous Monk on Jun 08, 2018 at 01:57 UTC | |
by tobyink (Canon) on Jun 08, 2018 at 09:23 UTC | |
by Anonymous Monk on Jun 08, 2018 at 02:15 UTC |