News for hackers. Stuff that matters.
Re:Show HN: Enlight – Learn to code by building projects by foota on Sunday December 10, 2017 @06:36PM (#15894137)
innerHtml wouldn't eliminate xss vectors though, things like load=something could bypass this.
Re:Show HN: Enlight – Learn to code by building projects by inimino on Tuesday December 12, 2017 @10:10PM (#15911724)
Yes, it's not completely safe. In a beginner tutorial, if you allow arbitrary HTML you should state that it shouldn't be done that way in a real app.