POST (Header:PUT) api.ashx/v2/html/fromtext.{json|xml}
Converts Text to HTML
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
convertToParagraphs | bool | Request Body | Convert new lines to paragraphs | Optional | True | |
detectMediaUrls | bool | Request Body | Detect URLs and adjust to render through file viewers | Optional | True | |
text | string | Request Body | Text to convert | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.put({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/html/fromtext.json', data: { 'text': 'text' } }).then(function(response) { // use response });
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <Html>html</Html> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>