json_format: Add html_safe option
This commit is contained in:
parent
3fad7feec3
commit
f8fe53cba9
3 changed files with 37 additions and 20 deletions
|
|
@ -110,6 +110,7 @@ is json_format(
|
|||
}
|
||||
_
|
||||
|
||||
is json_format('<hello & world>', html_safe => 1), '"\u003chello \u0026 world\u003e"';
|
||||
|
||||
eval { json_format [[]], max_depth => 2 };
|
||||
like $@, qr/max_depth exceeded while formatting JSON/;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue