From 825997c857a6c22b5970d119c311e6ebc26d1465 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 5 Oct 2017 11:48:10 +1030 Subject: [PATCH] Fix post contentHtml sometimes breaking script parsing <\/script> tags in post content would sometimes be recognized as actually ending the script tag, even when escaped (not exactly sure why). This is fixed by encoding the < > characters in unicode. --- framework/core/views/app.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/views/app.blade.php b/framework/core/views/app.blade.php index 2f98cb715..198fde143 100644 --- a/framework/core/views/app.blade.php +++ b/framework/core/views/app.blade.php @@ -49,7 +49,7 @@ if (module.default) module.default(app); } - app.boot({!! json_encode($payload) !!}); + app.boot({!! json_encode($payload, JSON_HEX_TAG) !!}); @if (! $debug) } catch (e) { window.location += (window.location.search ? '&' : '?') + 'nojs=1';