[Koha-bugs] [Bug 20891] Lists in staff don't load when \ was used in the description

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 24 17:29:53 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20891

--- Comment #19 from Liz Rea <wizzyrea at gmail.com> ---
Created attachment 88638
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88638&action=edit
Bug 20891: Escape html then JSON

To my understanding we need to escape first html chars then to JSON.

If this patch works we will need to rethink the 'To' TT plugin.
It was originally designed to have several escape methods, but with
these changes it will not make sense to name it 'To' if used only to
escape JSON

IIRC we should keep the 2 different ways to use it:
 * [% To.json( string ) %]
 * [% string | $To %]
otherwise it will be hard to use it when called in argument of
patron-title.inc (`git grep To.json`)

Signed-off-by: Liz Rea <wizzyrea at gmail.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list