These are chat archives for synrc/n2o

13th
Feb 2017
Sébastien Saint-Sevin
@seb3s
Feb 13 2017 10:44
@5HT Hi, I'm missing html_encode working directly on binary instead of only being list based. I'm currently using nitrogen version which includes both. So you think it could be added to N2O ?
Andy
@m-2k
Feb 13 2017 20:19
@seb3s wat?
wf:html_encode(<<"sas\'">>).
"sas&#39;"
If you use the nitro you should not care about what goes into the render as all flattened by means list_to_binary/1
use #panel{body=["sas",<<"1">>,["deeper"]]} for smiler and more expressive code-style
Sébastien Saint-Sevin
@seb3s
Feb 13 2017 23:11
yep I mean I want
wf:html_encode(<<"sas\'">>).
<<"sas&#39;">>
returns a binary when a binary is submitted, returns a list when a list is submitted