You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2019. It is now read-only.
Right now when a developer performs console.log() on a string escaped by the html method in fusion-core, it's logged as an empty object. This makes it pretty confusing, so it would be nice if
At a minimum we should have some more comments in sanitization.js. It would be nice if we could expose some additional information as enumerable keys, possibly nesting the object? Quick sketch:
constobj={description: "An escaped HTML value. Use consumeSanitizedHTML to output."};Object.defineProperty(obj,key,{enumerable: false,configurable: false,value: head+values.map((s,i)=>escape(s)+rest[i]).join(''),});returnobj;
Right now when a developer performs
console.log()
on a string escaped by the html method in fusion-core, it's logged as an empty object. This makes it pretty confusing, so it would be nice ifAt a minimum we should have some more comments in sanitization.js. It would be nice if we could expose some additional information as enumerable keys, possibly nesting the object? Quick sketch:
fusion-core/src/sanitization.js
Lines 36 to 42 in a6145ba
The text was updated successfully, but these errors were encountered: