News for hackers. Stuff that matters.
Re:A story about <input> by recursive on Thursday October 22, 2015 @03:49PM (#10434559)
I'm seeing this as well. The served html says

<title>A story about &amp;lt;input&amp;gt; | Hacker News</title>

It looks like it got double encoded.

Re:A story about &lt;input&gt; by nathancahill on Thursday October 22, 2015 @04:32PM (#10434848)
Funny, my HTML based HN app on iOS actually rendered[0] an input field in the title. Disappeared after a second. No one submit titles with <script>alert()</script> please!

It looks like the title in the API is encoded correctly[1].

[0] http://i.imgur.com/CDnwDZJ.jpg

[1] https://hacker-news.firebaseio.com/v0/item/10433793.json?pri...

Re:A story about &lt;input&gt; by scintill76 on Thursday October 22, 2015 @09:01PM (#10436222)
The API is returning "title" : "A story about &lt;input&gt;" for me. I don't consider that correct encoding, as "&lt;" is not a special escape sequence in JSON, and expecting API consumers to either blindly trust you did their escaping for them, or HTML-decode JSON strings to use in another context, is silly. It is probably another symptom of something HTML-escaping the title when it shouldn't be.
Re:A story about &lt;input&gt; by nathancahill on Friday October 23, 2015 @11:27AM (#10439182)
Yes, you're right.
Re:A story about &lt;input&gt; by szatkus on Thursday October 22, 2015 @05:57PM (#10435392)
CommaFeed has similar problem.

http://imgur.com/Bijmmuh

Re:A story about &lt;input&gt; by vito on Friday October 23, 2015 @01:21AM (#10436937)
Same issue on Android: http://i.imgur.com/FKPvJsq.png

Time to avoid /newest.

Re:A story about &lt;input&gt; by natzim on Thursday October 22, 2015 @04:43PM (#10434912)
Oh boy...