0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/unit
Hannah Wolfe 724db487a0
Swapped _.escape for proxy.escapeExpression
- we don't need to use _.escape from lodash as we already have escapeExpression from handlebars
- it's more correct to use the escape utility from our theme engine when escaping strings _for_ our theme engine!
- Note there is a minor difference between the two:
  - Lodash: &, <, >, " and '
    - refs: https://lodash.com/docs/4.17.15#escape
  - Handlebars: &, <, >, ", ', ` and =
    - refs: https://handlebarsjs.com/api-reference/utilities.html#helper-utilities

- This could cause slightly weird behaviour in themes around ` and = characters, but as it's just convering to html entities it should be fine
2021-06-04 20:07:44 +01:00
..
adapters Refactored scheduling index files into class/initializer pattern 2021-05-25 22:32:41 +04:00
api Added support for gating content by member labels and products (#12946) 2021-05-10 19:32:11 +01:00
apps Moved active theme to new theme engine service 2021-04-23 15:28:50 +01:00
data Added {monthly,yearly}_price columns to products 2021-06-01 09:38:15 +01:00
helpers Swapped _.escape for proxy.escapeExpression 2021-06-04 20:07:44 +01:00
lib Extracted package-json lib to Utils 2021-05-07 12:35:06 +01:00
models Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
server Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
services Removed update check service in favor of external package 2021-06-03 13:24:19 +04:00
shared Added fake logging to i18n tests 2021-05-06 19:38:01 +01:00
web Fixed broken require path (bridge in tests) 2021-04-26 15:01:10 +01:00