codingteam / horta-hell

Configurable XMPP bot written in Scala based on the Akka framework.
MIT License
15 stars 8 forks source link

HTML entities in Twitter messages #405

Open ForNeVeR opened 8 years ago

ForNeVeR commented 8 years ago

Consider Twitter user that have written the following in tweet:

λ> nil := (\f . (\x . x))
λ> pair := (\x . (\y . (\z . ((z x) y))))
λ> ((pair 97) ((pair 98) ((pair 99) nil)))
string: abc

For some reason Horta echoed this to MUC in the following form:

<horta hell> @tsoding твитит: λ&gt; nil := (\f . (\x . x))
λ&gt; pair := (\x . (\y . (\z . ((z x) y))))
λ&gt; ((pair 97) ((pair 98) ((pair 99) nil)))
string: abc

I don't think we should replace these > with &gt;.

rexim commented 8 years ago

Morganey as a testing tool for Horta!

ForNeVeR commented 8 years ago

Parts of our infrastructure are testing each other. We need to add more to the mix to evolve the perfect machine!

hagane commented 8 years ago

Right. Twitter's probably thinks it's cute to pre-escape html in the tweets. Should be straightforward enough.