-
Notifications
You must be signed in to change notification settings - Fork 573
Custom JS is being Escaped #1046
Comments
@SolidX in |
@protomorph That solves it! Thanks! |
@SolidX No problem. |
@protomorph, reckon you can drop this in a PR? :D |
@TheBrenny I'll get one done in the next few hours. |
@protomorph After making this change, article text is being displayed as-is (e.g. no markdown or HTML rendering) on the main page of my site. Must we change a |
@frozenpandaman Making this change doesn't effect anything else, you must of changed somthing to stop markdown from rendering |
@protomorph I don't think so. I changed the line back to how it was originally and blog posts started displaying correctly again… I'll look more into it tonight, though. |
Well, here's where the problem was introduced: bc202b5 All input is escaped when first fetched using |
Fix for #1046 (Custom JS is being escaped)
Summary
When including custom Javascript in a post, it displays properly on the post edit page but renders with escaped characters when viewing a post. This causes scripts to break.
Reproduction Steps
Expected Behaviour
Should render unescaped javascript when viewing post. ex.
var x = 9001 > 42;
Actual Behaviour
Actually renders escaped javascript. ex.
var x = 9001 > 42;
Context details (if applicable)
The text was updated successfully, but these errors were encountered: