Implemented the json stringify and parse filters.
This commit is contained in:
8
js/test_cases/filters/README.md
Normal file
8
js/test_cases/filters/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
HTML Escaping
|
||||
-------------
|
||||
|
||||
Dust automatically applies the `|h` filter to html escape unless `|s` is applied to disable automatic html escaping. It seems that if you manually specify `|h` and `|s` in the same filter, then it still html escapes, so my theory on the logic is:
|
||||
|
||||
Iterate over all filters
|
||||
If `|s` or `|h` is not present append `|h`, otherwise, leave filters as-in
|
||||
During render, `|s` does nothing, so we can just remove it on the dust side to prevent confusion.
|
||||
Reference in New Issue
Block a user