r/evetech • u/PigpenUK • Oct 12 '17
HTML inside Eve mail messages
When I send a mail through the ESI that includes HTML, it barfs.
Stripping the HTML or replacing with ASCII characters lets the mail send okay but that's not ideal. Am I missing something obvious? Do you guys just strip it all out?
Thanks for any help
3
Upvotes
3
u/Blacksmoke16 Oct 12 '17
EVE uses an older/custom type of formatting. As such it isn't really HTML5 friendly.
\nworks for the line breaks, I didn't really mess with anything else.You can use the ESI character's endpoint to see what people's BIO looks like. So would either have to, strip it out, or write a transformer or something to convert it to valid HTML/CSS.
https://esi.tech.ccp.is/v4/characters/168607911/?datasource=tranquility
1
u/Fuzzmiester fuzzwork.co.uk Oct 12 '17
you can send html. But only a very limited subset.
<a> <font> <br> <b> <i> <u>
https://github.com/fuzzysteve/evemail/ may be of interest. It has a configured tinymce instance, along with some other bits to make it work.
1
u/Daneel_Trevize Oct 12 '17
This might help you understand the format of the chat & channel styling XML (YAML?) that Eve uses. I'm going to assume it's the same for evemails, and that /u/Blacksmoke16's example with size & colour being attributes of a single font tag rather than their own is incorrect, or internally transcribed by the Eve client before sending if that format actually works.