2/24/2023 0 Comments Express get plain text body![]() ![]() It even lets you place tags in the middle of words. The value here is that it gives you full control over whether tags and/or plain text should touch. It is a pretty powerful extensible parser for HTML. I use the htmlparser available at for doing exactly this. Specifying plain text to be retrieved is not supported yet, but it should not be hard to. The value (if it is returned by the server) is stored in EwsMessageInfo.TextBody property. I have done basically the same thing by using regular expressions to extract the relavent text and build a new message with the relavent data. The beta build contains new EwsItemFields.TextBody enum value that makes it possible to download plain text body of a message the same way as EwsItemFields.Body does. The following code snippet shows the usage of both used classes in more detail: String text 'plain text request body' RequestBody body RequestBody.create(MediaType.parse('text/plain'), text) Call call service.getStringRequestBody(body) ResponseSoâ¦Pug drops the whitespace between tags, but keeps the whitespace inside them. The ResponseBody class allows us to receive any response data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |