POST (Header:PUT) api.ashx/v2/text/fromhtml.{json|xml}
Converts HTML to Text
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
html | string | Request Body | HTML to convert | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.put({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/text/fromhtml.json', data: { 'html': 'html' } }).then(function(response) { // use response });
Example Responses
JSON
{ "TextConversion": { "Text": "text", "IsDataLost": true }, "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <TextConversion> <Text>text</Text> <IsDataLost>true</IsDataLost> </TextConversion> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>