Title: Output HTML with Transform Function
Last modified: August 31, 2016

---

# Output HTML with Transform Function

 *  Resolved [simusch](https://wordpress.org/support/users/simusch/)
 * (@simusch)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/output-html-with-transform-function/)
 * Hi
 * I have a checkbox in my contact-form with 0/1 values
    I output the stored data
   with:
 * `[cfdb-table form="..." trans="checkbox=myFunction"]`
 * In myFunction() I’d like to output HTML depending on the value of checkbox. But
   the function shows HTML as code and not as HTML.
    What can I do?
 * [https://wordpress.org/plugins/contact-form-7-to-database-extension/](https://wordpress.org/plugins/contact-form-7-to-database-extension/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/output-html-with-transform-function/#post-7440551)
 * This is because the shortcode output is trying to protect you from HTML & Javascript
   injection attacks.
 * A better way might be to add some jQuery in the page to change the value. Similar
   to the [Make links clickable in tables](http://cfdbplugin.com/?p=867) example.
 *  Thread Starter [simusch](https://wordpress.org/support/users/simusch/)
 * (@simusch)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/output-html-with-transform-function/#post-7440582)
 * thanks, this worked like a charm! so easy…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Output HTML with Transform Function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-database-extension_ffffff.
   svg)
 * [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-to-database-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [output](https://wordpress.org/support/topic-tag/output/)

 * 2 replies
 * 2 participants
 * Last reply from: [simusch](https://wordpress.org/support/users/simusch/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/output-html-with-transform-function/#post-7440582)
 * Status: resolved