Title: Use HTML in template
Last modified: August 21, 2016

---

# Use HTML in template

 *  [Nathan Hawkes](https://wordpress.org/support/users/natehawkes/)
 * (@natehawkes)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/use-html-in-template/)
 * I am using WordPress 3.8 and WCS 3.04. I am trying to edit the template for classes
   and add HTML so as to style the entry. Unfortunately, all HTML is stripped from
   the template when I submit. Is it possible to either add the possibility of using
   HTML when creating the template (without editing the PHP)?
 * [http://wordpress.org/plugins/weekly-class-schedule/](http://wordpress.org/plugins/weekly-class-schedule/)

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

 *  Plugin Author [amitai](https://wordpress.org/support/users/ty_pwd/)
 * (@ty_pwd)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/use-html-in-template/#post-4527895)
 * There’s an option to allow for HTML tags in the options page. There are instructions
   there as well as to how to modify the allowed HTML tags list.
 * Hope that helps.
 *  Thread Starter [Nathan Hawkes](https://wordpress.org/support/users/natehawkes/)
 * (@natehawkes)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/use-html-in-template/#post-4527899)
 * I can only see the option to “Allow HTML in notes”, not anything for the the “
   Class Details Template”. Have I missed something?
 *  Thread Starter [Nathan Hawkes](https://wordpress.org/support/users/natehawkes/)
 * (@natehawkes)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/use-html-in-template/#post-4527996)
 * I have upgraded to 3.05, but the issue is still there. After a little delving,
   I think I might have found where the issue lies, or somewhere close to it. In`
   weekly-class-schedule/includes/wcs3_settings.php`, there is an option for ‘details_template’
   which is set to ‘sanitize_text_field’ ([http://codex.wordpress.org/Function_Reference/sanitize_text_field](http://codex.wordpress.org/Function_Reference/sanitize_text_field)).
   This is what is stripping the HTML out of the template and leaving me with
 * `[class] [instructor] [start hour] to [end hour] [notes]`
 * instead of
 *     ```
       <p>[class]</p>
       <p>[instructor]</p>
       <p>[start hour] to [end hour]</p>
       <p>[notes]</p>
       ```
   
 * I hope that makes it a bit clearer for you to help me. I’m really pulling what
   little hair I have left out to find a solution.
 *  [smarta](https://wordpress.org/support/users/smarta/)
 * (@smarta)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/use-html-in-template/#post-4528154)
 * I second it. I had my schedule styled, so some information would more visible
   and some less (like class start hour is more important than when it ends)
 * Now html in Class Details Template is stripped. There is also no html added by
   add-on itself. It is impossible to stylize the line with one schedule event now.

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

The topic ‘Use HTML in template’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/weekly-class-schedule_e7e1ae.svg)
 * [Weekly Class Schedule](https://wordpress.org/plugins/weekly-class-schedule/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/weekly-class-schedule/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/weekly-class-schedule/)
 * [Active Topics](https://wordpress.org/support/plugin/weekly-class-schedule/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weekly-class-schedule/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weekly-class-schedule/reviews/)

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [smarta](https://wordpress.org/support/users/smarta/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/use-html-in-template/#post-4528154)
 * Status: not resolved