0

Im making an exportation process (from SQL Server to MySql) and in the text_format column insert NULL values, currently the page is rendering the pure html (plain text) instead of render the html correctly in the browser.

Somebody know how to force the output text_format to be filtered_html to my specific content type?

Thanks in advance

1 Answer 1

0

Assuming the inserts are taking place on field tables (e.g. field_data_body, field_data_field_MACHINE_NAME), you shouldn't insert NULL into the *_format columns. Rather, you should be inserting the machine name of your desired filter format (e.g. filtered_html for Filtered HTML or full_html for Full HTML). See the filter_format table for all available machine names for your installation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.