PHP IMAP Plain text one jarbled paragraph -


i'm using imap php , retrieving message. contents can either html or plain text. when html available, resort using html contents displaying. however, if html text not available, must use plain text rendering messages user.

my question is, when display plain text, comes 1 jarbled paragraph. i'd figure out how format plain text viewable fashion. multipart issue, , parts form 1 jarbled paragraph. if so, should do? erase parts not recent? there way format plain text regalrdess

thanks

you can enclose text in <pre> tags preserve formatting

you can use nl2br insert <br /> before new lines


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -